Repository navigation
|
ASDF schemas are basically JSON schemas, but converted to YAML...
I am interested JSON Schema Draft 2020-12 largely because Pydantic can generate them. |
Replies: 1 comment 2 replies
|
The current ASDF schemas mostly use the http://stsci.edu/schemas/yaml-schema/draft-01 metaschema which is largely https://json-schema.org/draft-04/schema with some additions for YAML and ASDF features. There is not currently support for other jsonschema drafts. It looks like pydantic allows you to customize the schema generation (to allow you to generate schemas of other dialects). Have you tried this for generating either draft-04 or ASDF schemas? |
The current ASDF schemas mostly use the http://stsci.edu/schemas/yaml-schema/draft-01 metaschema which is largely https://json-schema.org/draft-04/schema with some additions for YAML and ASDF features.
There is not currently support for other jsonschema drafts. It looks like pydantic allows you to customize the schema generation (to allow you to generate schemas of other dialects). Have you tried this for generating either draft-04 or ASDF schemas?