equipment/mouvements/movement.schema.json

39 lines
839 B
JSON
Raw Normal View History

{
2023-12-06 09:59:11 +01: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": ["input", "output"]
},
2025-02-17 08:56:57 +01:00
"operation": {
"description": "clé de l'opération",
"type": "string"
2023-12-06 09:59:11 +01:00
},
"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"]
}
},
2025-02-17 08:56:57 +01:00
"required": ["type", "direction", "operation", "amount", "equipment", "date", "comment"]
}