Files
bitoduc.fr/vérifications/schéma.json

39 lines
1.0 KiB
JSON

{ "type": "object",
"properties": {
"faux mots": {
"type": "array",
"items": {"$ref": "#/definitions/mot"}
},
"vrais mots": {
"type": "array",
"items": {"$ref": "#/definitions/mot"}
}
},
"definitions": {
"mot": {
"type": "object",
"properties":
{
"anglais": {"type": "string"},
"français": {"type": "string"},
"classe": {
"type": "string",
"enum": [
"adjectif",
"groupe nominal",
"groupe verbal",
"proposition",
"verbe"
]
},
"genre": {
"type": "string",
"enum": ["f", "m"]
},
"pluriel": {"type": "boolean"}
},
"required": ["anglais", "français", "classe"]
}
}
}