From 79dfac08ca47ef251baf5cd2b8270dae52f0010e Mon Sep 17 00:00:00 2001 From: Jean-Christophe Engel Date: Thu, 12 Oct 2023 14:56:29 +0200 Subject: [PATCH] =?UTF-8?q?D=C3=A9placement=20fichiers=20json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- category.schema.json | 10 ---------- movement.schema.json | 39 --------------------------------------- 2 files changed, 49 deletions(-) delete mode 100644 category.schema.json delete mode 100644 movement.schema.json diff --git a/category.schema.json b/category.schema.json deleted file mode 100644 index 2213d91..0000000 --- a/category.schema.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "type": "object", - "properties": { - "name": { - "type": "string" - } - }, - "required": ["name"] -} diff --git a/movement.schema.json b/movement.schema.json deleted file mode 100644 index f4340c3..0000000 --- a/movement.schema.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "$schema": "https://json-schema.org/draft/2020-12/schema", - "type": "object", - "properties": { - "direction" : { - "description": "Entrée ou sortie", - "type": "string", - "enum": ["entrée", "sortie"] - }, - "inputNature": { - "description": "Nature de l'entrée", - "type": "string", - "enum": ["Achat", "Don", "Récupération", "Location / Prêt"] - }, - "outputNature": { - "description": "Nature de la sortie", - "type": "string", - "enum": ["Vente", "Don", "Besoin", "Autre (perte, vol, ...)", "Location / Prêt"] - }, - "amount": { - "description": "Quantité ajoutée ou retirée", - "type": "integer", - "minimum": 1 - } - "equipment": { - "type": "string" - } - "date" : { - "description": "Date de l'opération", - "type": "string", - "format": "datetime" - } - "comment": { - "description": "Commentaire additionnel", - "type": "string" - } - }, - "required": ["direction", "inputNature", "outputNature", "amount", "equipment", "date", "comment"] -}