Skip to content

Support inline as dict in jsonschemagen, fixes #411#413

Merged
cmungall merged 2 commits intomainfrom
issue-411
Oct 18, 2021
Merged

Support inline as dict in jsonschemagen, fixes #411#413
cmungall merged 2 commits intomainfrom
issue-411

Conversation

@cmungall
Copy link
Member

Fixes #411

now if jsonschemagen encounters inline as dict (e.g slots in the metamodel)
it will generate:

"slots": {
"additionalProperties": {
"$ref": "#/$defs/SlotDefinition__identifier_optional"
},
"description": "slot definitions"
},

where SlotDefinition__identifier_optional is identical
to SlotDefinition, except name (the identifier column) is optional

Also update jsonschemagen docs

Fixes #411

now if jsonschemagen encounters inline as dict (e.g slots in the metamodel)
it will generate:

"slots": {
               "additionalProperties": {
                  "$ref": "#/$defs/SlotDefinition__identifier_optional"
               },
               "description": "slot definitions"
            },

where SlotDefinition__identifier_optional is identical
to SlotDefinition, except name (the identifier column) is optional

Also update jsonschemagen docs
@cmungall cmungall merged commit 0dd74b3 into main Oct 18, 2021
iQuxLE pushed a commit that referenced this pull request Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for inlining multivalued slots as dictionaries in JSON-Schema generation

1 participant