2023-10-12 13:48:49 +02:00
|
|
|
{
|
|
|
|
"$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": ["entrée", "sortie"]
|
|
|
|
},
|
|
|
|
"inputNature": {
|
|
|
|
"description": "Nature de l'entrée",
|
2023-10-26 10:04:45 +02:00
|
|
|
"type": ["null", "string"]
|
2023-10-12 13:48:49 +02:00
|
|
|
},
|
|
|
|
"outputNature": {
|
|
|
|
"description": "Nature de la sortie",
|
2023-10-26 10:04:45 +02:00
|
|
|
"type": ["null", "string"]
|
2023-10-12 13:48:49 +02:00
|
|
|
},
|
|
|
|
"amount": {
|
|
|
|
"description": "Quantité ajoutée ou retirée",
|
|
|
|
"type": "integer",
|
|
|
|
"minimum": 1
|
2023-10-16 12:02:05 +02:00
|
|
|
},
|
2023-10-12 13:48:49 +02:00
|
|
|
"equipment": {
|
2023-11-19 18:41:34 +01:00
|
|
|
"description": "Clé du matériel",
|
2023-10-12 13:48:49 +02:00
|
|
|
"type": "string"
|
2023-10-16 12:02:05 +02:00
|
|
|
},
|
2023-10-12 13:48:49 +02:00
|
|
|
"date" : {
|
|
|
|
"description": "Date de l'opération",
|
|
|
|
"type": "string",
|
2023-10-16 12:02:05 +02:00
|
|
|
"format": "date"
|
|
|
|
},
|
2023-10-12 13:48:49 +02:00
|
|
|
"comment": {
|
|
|
|
"description": "Commentaire additionnel",
|
2023-10-16 12:02:05 +02:00
|
|
|
"type": ["null", "string"]
|
2023-10-12 13:48:49 +02:00
|
|
|
}
|
|
|
|
},
|
2023-10-16 12:02:05 +02:00
|
|
|
"required": ["type", "direction", "amount", "equipment", "date", "comment"]
|
2023-10-12 13:48:49 +02:00
|
|
|
}
|