-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Description
@DunklesArchipel and I had a discussion about inheritance of schemata.
The easiest seems to add more fields to an existing schema by doing something like this:
{
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Extending an existing schema",
"allOf": [
{
"$ref": "original-schema.json"
},
{
"properties": {
"newProperty": {
"type": "string"
}
},
"required": ["newProperty"]
}
]
}Eventually, there should be a full hierarchy of schemata that just mix and match things as needed.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request