alterschema
Version:
Convert between schema specifications
36 lines (35 loc) • 812 B
JSON
{
"$id": "https://github.com/sourcemeta/alterschema/raw/master/schemas/walker.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"additionalProperties": {
"type": "object",
"required": [ "vocabulary", "type", "walker" ],
"additionalProperties": false,
"properties": {
"vocabulary": {
"type": "string"
},
"type": {
"oneOf": [
{ "$ref": "#/$defs/applicator-type" },
{
"type": "array",
"uniqueItems": true,
"items": {
"$ref": "#/$defs/applicator-type"
}
}
]
},
"walker": {
"type": "string"
}
}
},
"$defs": {
"applicator-type": {
"enum": [ "object", "array", "value" ]
}
}
}