43 lines
1.2 KiB
JSON
43 lines
1.2 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"enum": ["movement"]
|
|
},
|
|
"direction" : {
|
|
"description": "Entrée ou sortie",
|
|
"type": "string",
|
|
"enum": ["input", "output"]
|
|
},
|
|
"input_nature": {
|
|
"description": "Nature de l'entrée",
|
|
"type": ["null", "string"]
|
|
},
|
|
"output_nature": {
|
|
"description": "Nature de la sortie",
|
|
"type": ["null", "string"]
|
|
},
|
|
"amount": {
|
|
"description": "Quantité ajoutée ou retirée",
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"equipment": {
|
|
"description": "Clé du matériel",
|
|
"type": "string"
|
|
},
|
|
"date" : {
|
|
"description": "Date de l'opération",
|
|
"type": "string",
|
|
"format": "date"
|
|
},
|
|
"comment": {
|
|
"description": "Commentaire additionnel",
|
|
"type": ["null", "string"]
|
|
}
|
|
},
|
|
"required": ["type", "direction", "amount", "equipment", "date", "comment"]
|
|
}
|