From f33dff44ffbaf6bb5345fbf20ac7bdd8d4812f95 Mon Sep 17 00:00:00 2001
From: pfleu <fleutotp@gmail.com>
Date: Sat, 25 Feb 2023 15:03:29 +0100
Subject: [PATCH] =?UTF-8?q?Am=C3=A9lioration=20sch=C3=A9ma=20json=20struct?=
 =?UTF-8?q?ure=20entr=C3=A9e=20minimale?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/JsonSchema/entrySchema.json | 106 ++++++++++++++++++--------------
 1 file changed, 60 insertions(+), 46 deletions(-)

diff --git a/src/JsonSchema/entrySchema.json b/src/JsonSchema/entrySchema.json
index 664b478..98faf5e 100644
--- a/src/JsonSchema/entrySchema.json
+++ b/src/JsonSchema/entrySchema.json
@@ -1,51 +1,65 @@
 {
-    "title": "Structure minimale d'une entrée",
-    "type": "object",
-    "properties": {
-        "Headword": {
-            "type": "string"
-        },
-        "Items": {
-            "type": "array",
-            "minItems": 1,
-            "items": {
-                "type": "object",
-                "properties": {
-                    "PartOfSpeech": "string",
-                    "Sense": {
-                        "type": "object",
-                        "properties": {
-                            "Definitions": {
-                                "type": "array",
-                                "minItems": 1,
-                                "items": {
-                                    "type": "object",
-                                    "properties": {
-                                        "Def": "string"
-                                    },
-                                    "required": ["Def"]
+    "attributes": {
+        "title": "Structure minimale d'une entrée",
+        "type": "object",
+        "properties": {
+            "Headword": {
+                "type": "string"
+            },
+            "Items": {
+                "type": "array",
+                "minItems": 1,
+                "items": {
+                    "type": "object",
+                    "properties": {
+                        "PartOfSpeech": "string",
+                        "Sense": {
+                            "type": "object",
+                            "properties": {
+                                "Definitions": {
+                                    "type": "array",
+                                    "minItems": 1,
+                                    "items": {
+                                        "type": "object",
+                                        "properties": {
+                                            "Def": "string"
+                                        },
+                                        "required": [
+                                            "Def"
+                                        ]
+                                    }
+                                },
+                                "Pronunciations": {
+                                    "type": "array",
+                                    "minItems": 1,
+                                    "items": {
+                                        "type": "object",
+                                        "properties": {
+                                            "api": "string",
+                                            "accent": "string",
+                                            "url": "string"
+                                        },
+                                        "required": [
+                                            "api"
+                                        ]
+                                    }
                                 }
                             },
-                            "Pronunciations": {
-                                "type": "array",
-                                "minItems": 1,
-                                "items": {
-                                    "type": "object",
-                                    "properties": {
-                                        "api": "string",
-                                        "accent": "string",
-                                        "url": "string"
-                                    },
-                                    "required": ["api"]
-                                }
-                            }
-                        },
-                        "required": ["Definitions"]
-                    }
-                },
-                "required": ["PartOfSpeech", "Sense"]
+                            "required": [
+                                "Definitions"
+                            ]
+                        }
+                    },
+                    "required": [
+                        "PartOfSpeech",
+                        "Sense"
+                    ]
+                }
             }
-        }
-    },
-    "required": ["Headword", "Items"]
+        },
+        "required": [
+            "Headword",
+            "Items"
+        ]
+    }
 }
\ No newline at end of file
-- 
GitLab