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-16 12:02:05 +02:00
|
|
|
"type": ["null", "string"],
|
2023-10-12 13:48:49 +02:00
|
|
|
"enum": ["Achat", "Don", "Récupération", "Location / Prêt"]
|
|
|
|
},
|
|
|
|
"outputNature": {
|
|
|
|
"description": "Nature de la sortie",
|
2023-10-16 12:02:05 +02:00
|
|
|
"type": ["null", "string"],
|
2023-10-20 14:11:59 +02:00
|
|
|
"enum": ["Vente", "Don", "Location / Prêt", "Autre (casse, perte, vol, ...)"]
|
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": {
|
|
|
|
"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
|
|
|
}
|