OpenDataServices / sphinxcontrib-opendataservices-jsonschema

https://sphinxcontrib-opendataservices-jsonschema.readthedocs.io/en/latest/
Other
3 stars 0 forks source link

Required fields in `anyOf` not documented #35

Open rhiaro opened 3 years ago

rhiaro commented 3 years ago

When a field is required conditionally and that is expressed via anyOf in the JSON schema, the 'required' column in the generated table is not populated. Eg. in BODS, one or both of scheme and schemeName are required for Identifier, and on Annotation url is required iff the motivation is linking.

See also: https://github.com/openownership/data-standard/issues/333