90 lines
1.9 KiB
JSON
90 lines
1.9 KiB
JSON
{
|
|
"$ref": "#/definitions/traite",
|
|
"definitions": {
|
|
"traite": {
|
|
"type": "object",
|
|
"properties": {
|
|
"title": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"level": {
|
|
"type": "number",
|
|
"enum": [
|
|
1,
|
|
2,
|
|
3
|
|
],
|
|
"default": 1
|
|
},
|
|
"version": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"concepts": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"default": []
|
|
},
|
|
"links": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"enum": [
|
|
"definition",
|
|
"appui",
|
|
"transposition"
|
|
]
|
|
},
|
|
"target": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"note": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"type",
|
|
"target"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"default": []
|
|
},
|
|
"order": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"summary": {
|
|
"type": "string"
|
|
},
|
|
"edition": {
|
|
"type": "string",
|
|
"const": "traite"
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"const": "theorie_fondamentale"
|
|
},
|
|
"$schema": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"title",
|
|
"version",
|
|
"edition",
|
|
"status"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
},
|
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
} |