Newer
Older
{
"$schema": "http://json-schema.org/schema#",
"definitions": {
"word": {
"type":"object",
"required": ["word"],
"properties": {
"word": {
"type": "string"
},
"context": {
"type": "string"
},
"description": {
"type": "string"
},
"synonyms": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
},
"topic": {
"type": "object",
"required": ["type","name","words"],
"properties": {
"type": {
"type": "string",
"pattern": "topic"
},
"name": {
"type": "string"
},
"words": {
"type": "array",
"items": {"$ref":"#/definitions/word"}
}
},
"additionalProperties": false
}
},
"type": "object",
"required": ["words"],
"properties": {
"macros": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"words": {
"type": "array",
"items": {
"anyOf": [
{"$ref":"#/definitions/word"},
{"$ref":"#/definitions/topic"}
]
}