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
My need is to validate my YAML files against their schema defined in Python/dataclasses/OmegaConf, in some Editor/IDE (assistance to edition).
I have no YAML-Schema, as the only reference "schema" is the one in .py.
So I have two complementary questions:
(1) Is there any (planned?) support, in some Editors/IDEs, for validation of YAML files directly against .py dataclasses (the ones used by OmegaConf to parse the YAML)?
or, by default, as several editors/IDEs support validation of YAML files against YAML-Schema (or even JSON-Schema):
(2) Is there any (planned?) support, in OmegaConf, for generation of YAML-Schema and/or JSON-Schema from the .py files?
(or do you know of any such support, elsewhere than in OmegaConf, as the format of the .py files is not really specific to OmegaConf...?)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
My need is to validate my YAML files against their schema defined in Python/dataclasses/OmegaConf, in some Editor/IDE (assistance to edition).
I have no YAML-Schema, as the only reference "schema" is the one in .py.
So I have two complementary questions:
(1) Is there any (planned?) support, in some Editors/IDEs, for validation of YAML files directly against .py dataclasses (the ones used by OmegaConf to parse the YAML)?
or, by default, as several editors/IDEs support validation of YAML files against YAML-Schema (or even JSON-Schema):
(2) Is there any (planned?) support, in OmegaConf, for generation of YAML-Schema and/or JSON-Schema from the .py files?
(or do you know of any such support, elsewhere than in OmegaConf, as the format of the .py files is not really specific to OmegaConf...?)
Best regards
Beta Was this translation helpful? Give feedback.
All reactions