You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The fmf.Tree constructor could be re-worked go like: fmf.Tree.__new__() -> files -> fmf.RawTree (collector/parser/operator) -> json_validator (also populates default) -> final fmf.Tree (subclass) -> tmt consumes it
If we go for attrs, that would be in between json_validator and constructing the fmf.Tree, where depending on which schema is validated, the appropriate subclass of fmf.Tree (e.g. tmt.plan) is constructed which would be an attrs.define decorated subclass. Additional converters, validators would come from attrs after that.
The text was updated successfully, but these errors were encountered:
LecrisUT
changed the title
cli and light-weight dict/json converter
Rewriting fmf.TreeDec 15, 2023
Proposal
The
fmf.Tree
constructor could be re-worked go like:fmf.Tree.__new__()
->files
->fmf.RawTree
(collector/parser/operator) ->json_validator
(also populatesdefault
) -> finalfmf.Tree
(subclass) ->tmt
consumes itIf we go for
attrs
, that would be in betweenjson_validator
and constructing thefmf.Tree
, where depending on whichschema
is validated, the appropriate subclass offmf.Tree
(e.g.tmt.plan
) is constructed which would be anattrs.define
decorated subclass. Additional converters, validators would come fromattrs
after that.The text was updated successfully, but these errors were encountered: