From 800df065e5e3eb8db993743e61e314641e6f9cde Mon Sep 17 00:00:00 2001
From: manonBlanco <blanco@teklia.com>
Date: Thu, 5 Sep 2019 14:55:18 +0200
Subject: [PATCH] change type object for metas to string

---
 arkindex/schema.yml | 137 ++++++++++++++++++++++++++++----------------
 1 file changed, 88 insertions(+), 49 deletions(-)

diff --git a/arkindex/schema.yml b/arkindex/schema.yml
index 94c0780..0c2f80c 100644
--- a/arkindex/schema.yml
+++ b/arkindex/schema.yml
@@ -78,7 +78,7 @@ paths:
                     type: string
                   metadata:
                     readOnly: true
-                    type: object
+                    type: string
                   name:
                     type: string
                   number:
@@ -1049,7 +1049,7 @@ paths:
                     type: string
                   metadata:
                     readOnly: true
-                    type: object
+                    type: string
                   name:
                     type: string
                   thumbnail_put_url:
@@ -1113,7 +1113,7 @@ paths:
                     type: string
                   metadata:
                     readOnly: true
-                    type: object
+                    type: string
                   name:
                     type: string
                   thumbnail_put_url:
@@ -1178,7 +1178,7 @@ paths:
                     type: string
                   metadata:
                     readOnly: true
-                    type: object
+                    type: string
                   name:
                     type: string
                   thumbnail_put_url:
@@ -1268,12 +1268,13 @@ paths:
                                 - year
                                 - month
                                 - day
+                              nullable: true
                               type: array
                             id:
                               type: string
                             metas:
                               nullable: true
-                              type: object
+                              type: string
                             name:
                               type: string
                             type:
@@ -1369,12 +1370,13 @@ paths:
                                 - year
                                 - month
                                 - day
+                              nullable: true
                               type: array
                             id:
                               type: string
                             metas:
                               nullable: true
-                              type: object
+                              type: string
                             name:
                               type: string
                             type:
@@ -1542,12 +1544,13 @@ paths:
                           - year
                           - month
                           - day
+                        nullable: true
                         type: array
                       id:
                         type: string
                       metas:
                         nullable: true
-                        type: object
+                        type: string
                       name:
                         type: string
                       type:
@@ -1591,12 +1594,13 @@ paths:
                           - year
                           - month
                           - day
+                        nullable: true
                         type: array
                       id:
                         type: string
                       metas:
                         nullable: true
-                        type: object
+                        type: string
                       name:
                         type: string
                       type:
@@ -2522,10 +2526,10 @@ paths:
                     - year
                     - month
                     - day
+                  nullable: true
                   type: array
                 metas:
-                  nullable: true
-                  type: object
+                  type: string
                 name:
                   type: string
                 type:
@@ -2577,12 +2581,13 @@ paths:
                                 - year
                                 - month
                                 - day
+                              nullable: true
                               type: array
                             id:
                               type: string
                             metas:
                               nullable: true
-                              type: object
+                              type: string
                             name:
                               type: string
                             type:
@@ -2626,12 +2631,13 @@ paths:
                                 - year
                                 - month
                                 - day
+                              nullable: true
                               type: array
                             id:
                               type: string
                             metas:
                               nullable: true
-                              type: object
+                              type: string
                             name:
                               type: string
                             type:
@@ -2712,13 +2718,13 @@ paths:
                       - year
                       - month
                       - day
+                    nullable: true
                     type: array
                   id:
                     readOnly: true
                     type: string
                   metas:
-                    nullable: true
-                    type: object
+                    type: string
                   name:
                     type: string
                   parents:
@@ -2748,12 +2754,13 @@ paths:
                                 - year
                                 - month
                                 - day
+                              nullable: true
                               type: array
                             id:
                               type: string
                             metas:
                               nullable: true
-                              type: object
+                              type: string
                             name:
                               type: string
                             type:
@@ -2797,12 +2804,13 @@ paths:
                                 - year
                                 - month
                                 - day
+                              nullable: true
                               type: array
                             id:
                               type: string
                             metas:
                               nullable: true
-                              type: object
+                              type: string
                             name:
                               type: string
                             type:
@@ -2946,7 +2954,7 @@ paths:
                     type: string
                   metas:
                     nullable: true
-                    type: object
+                    type: string
                   name:
                     type: string
                   type:
@@ -3007,12 +3015,13 @@ paths:
                                 - year
                                 - month
                                 - day
+                              nullable: true
                               type: array
                             id:
                               type: string
                             metas:
                               nullable: true
-                              type: object
+                              type: string
                             name:
                               type: string
                             type:
@@ -3056,12 +3065,13 @@ paths:
                                 - year
                                 - month
                                 - day
+                              nullable: true
                               type: array
                             id:
                               type: string
                             metas:
                               nullable: true
-                              type: object
+                              type: string
                             name:
                               type: string
                             type:
@@ -3150,12 +3160,13 @@ paths:
                       - year
                       - month
                       - day
+                    nullable: true
                     type: array
                   id:
                     type: string
                   metas:
                     nullable: true
-                    type: object
+                    type: string
                   name:
                     type: string
                   parents:
@@ -3185,12 +3196,13 @@ paths:
                                 - year
                                 - month
                                 - day
+                              nullable: true
                               type: array
                             id:
                               type: string
                             metas:
                               nullable: true
-                              type: object
+                              type: string
                             name:
                               type: string
                             type:
@@ -3234,12 +3246,13 @@ paths:
                                 - year
                                 - month
                                 - day
+                              nullable: true
                               type: array
                             id:
                               type: string
                             metas:
                               nullable: true
-                              type: object
+                              type: string
                             name:
                               type: string
                             type:
@@ -3357,12 +3370,13 @@ paths:
                                 - year
                                 - month
                                 - day
+                              nullable: true
                               type: array
                             id:
                               type: string
                             metas:
                               nullable: true
-                              type: object
+                              type: string
                             name:
                               type: string
                             type:
@@ -3406,12 +3420,13 @@ paths:
                                 - year
                                 - month
                                 - day
+                              nullable: true
                               type: array
                             id:
                               type: string
                             metas:
                               nullable: true
-                              type: object
+                              type: string
                             name:
                               type: string
                             type:
@@ -3500,12 +3515,13 @@ paths:
                       - year
                       - month
                       - day
+                    nullable: true
                     type: array
                   id:
                     type: string
                   metas:
                     nullable: true
-                    type: object
+                    type: string
                   name:
                     type: string
                   parents:
@@ -3535,12 +3551,13 @@ paths:
                                 - year
                                 - month
                                 - day
+                              nullable: true
                               type: array
                             id:
                               type: string
                             metas:
                               nullable: true
-                              type: object
+                              type: string
                             name:
                               type: string
                             type:
@@ -3584,12 +3601,13 @@ paths:
                                 - year
                                 - month
                                 - day
+                              nullable: true
                               type: array
                             id:
                               type: string
                             metas:
                               nullable: true
-                              type: object
+                              type: string
                             name:
                               type: string
                             type:
@@ -3707,12 +3725,13 @@ paths:
                               - year
                               - month
                               - day
+                            nullable: true
                             type: array
                           id:
                             type: string
                           metas:
                             nullable: true
-                            type: object
+                            type: string
                           name:
                             type: string
                           type:
@@ -3756,12 +3775,13 @@ paths:
                               - year
                               - month
                               - day
+                            nullable: true
                             type: array
                           id:
                             type: string
                           metas:
                             nullable: true
-                            type: object
+                            type: string
                           name:
                             type: string
                           type:
@@ -3850,12 +3870,13 @@ paths:
                     - year
                     - month
                     - day
+                  nullable: true
                   type: array
                 id:
                   type: string
                 metas:
                   nullable: true
-                  type: object
+                  type: string
                 name:
                   type: string
                 parents:
@@ -3885,12 +3906,13 @@ paths:
                               - year
                               - month
                               - day
+                            nullable: true
                             type: array
                           id:
                             type: string
                           metas:
                             nullable: true
-                            type: object
+                            type: string
                           name:
                             type: string
                           type:
@@ -3934,12 +3956,13 @@ paths:
                               - year
                               - month
                               - day
+                            nullable: true
                             type: array
                           id:
                             type: string
                           metas:
                             nullable: true
-                            type: object
+                            type: string
                           name:
                             type: string
                           type:
@@ -4040,12 +4063,13 @@ paths:
                                 - year
                                 - month
                                 - day
+                              nullable: true
                               type: array
                             id:
                               type: string
                             metas:
                               nullable: true
-                              type: object
+                              type: string
                             name:
                               type: string
                             type:
@@ -4089,12 +4113,13 @@ paths:
                                 - year
                                 - month
                                 - day
+                              nullable: true
                               type: array
                             id:
                               type: string
                             metas:
                               nullable: true
-                              type: object
+                              type: string
                             name:
                               type: string
                             type:
@@ -4183,12 +4208,13 @@ paths:
                       - year
                       - month
                       - day
+                    nullable: true
                     type: array
                   id:
                     type: string
                   metas:
                     nullable: true
-                    type: object
+                    type: string
                   name:
                     type: string
                   parents:
@@ -4218,12 +4244,13 @@ paths:
                                 - year
                                 - month
                                 - day
+                              nullable: true
                               type: array
                             id:
                               type: string
                             metas:
                               nullable: true
-                              type: object
+                              type: string
                             name:
                               type: string
                             type:
@@ -4267,12 +4294,13 @@ paths:
                                 - year
                                 - month
                                 - day
+                              nullable: true
                               type: array
                             id:
                               type: string
                             metas:
                               nullable: true
-                              type: object
+                              type: string
                             name:
                               type: string
                             type:
@@ -4389,12 +4417,13 @@ paths:
                               - year
                               - month
                               - day
+                            nullable: true
                             type: array
                           id:
                             type: string
                           metas:
                             nullable: true
-                            type: object
+                            type: string
                           name:
                             type: string
                           type:
@@ -4438,12 +4467,13 @@ paths:
                               - year
                               - month
                               - day
+                            nullable: true
                             type: array
                           id:
                             type: string
                           metas:
                             nullable: true
-                            type: object
+                            type: string
                           name:
                             type: string
                           type:
@@ -4532,12 +4562,13 @@ paths:
                     - year
                     - month
                     - day
+                  nullable: true
                   type: array
                 id:
                   type: string
                 metas:
                   nullable: true
-                  type: object
+                  type: string
                 name:
                   type: string
                 parents:
@@ -4567,12 +4598,13 @@ paths:
                               - year
                               - month
                               - day
+                            nullable: true
                             type: array
                           id:
                             type: string
                           metas:
                             nullable: true
-                            type: object
+                            type: string
                           name:
                             type: string
                           type:
@@ -4616,12 +4648,13 @@ paths:
                               - year
                               - month
                               - day
+                            nullable: true
                             type: array
                           id:
                             type: string
                           metas:
                             nullable: true
-                            type: object
+                            type: string
                           name:
                             type: string
                           type:
@@ -4728,12 +4761,13 @@ paths:
                                 - year
                                 - month
                                 - day
+                              nullable: true
                               type: array
                             id:
                               type: string
                             metas:
                               nullable: true
-                              type: object
+                              type: string
                             name:
                               type: string
                             type:
@@ -4777,12 +4811,13 @@ paths:
                                 - year
                                 - month
                                 - day
+                              nullable: true
                               type: array
                             id:
                               type: string
                             metas:
                               nullable: true
-                              type: object
+                              type: string
                             name:
                               type: string
                             type:
@@ -4871,12 +4906,13 @@ paths:
                       - year
                       - month
                       - day
+                    nullable: true
                     type: array
                   id:
                     type: string
                   metas:
                     nullable: true
-                    type: object
+                    type: string
                   name:
                     type: string
                   parents:
@@ -4906,12 +4942,13 @@ paths:
                                 - year
                                 - month
                                 - day
+                              nullable: true
                               type: array
                             id:
                               type: string
                             metas:
                               nullable: true
-                              type: object
+                              type: string
                             name:
                               type: string
                             type:
@@ -4955,12 +4992,13 @@ paths:
                                 - year
                                 - month
                                 - day
+                              nullable: true
                               type: array
                             id:
                               type: string
                             metas:
                               nullable: true
-                              type: object
+                              type: string
                             name:
                               type: string
                             type:
@@ -5080,7 +5118,7 @@ paths:
                     type: string
                   metadata:
                     readOnly: true
-                    type: object
+                    type: string
                   name:
                     type: string
                   thumbnail_put_url:
@@ -8059,12 +8097,13 @@ paths:
                           - year
                           - month
                           - day
+                        nullable: true
                         type: array
                       id:
                         type: string
                       metas:
                         nullable: true
-                        type: object
+                        type: string
                       name:
                         type: string
                       type:
-- 
GitLab