From 6d4268cbad0bda021e5f4ed4a631c1a422282d2c Mon Sep 17 00:00:00 2001
From: Erwan Rouchet <rouchet@teklia.com>
Date: Wed, 25 Sep 2019 15:02:40 +0000
Subject: [PATCH] Smash ElementPages

---
 arkindex/schema.yml | 713 ++++++++++++++++++++++++++++----------------
 1 file changed, 450 insertions(+), 263 deletions(-)

diff --git a/arkindex/schema.yml b/arkindex/schema.yml
index ce443b3..baa30e0 100644
--- a/arkindex/schema.yml
+++ b/arkindex/schema.yml
@@ -97,16 +97,35 @@ paths:
                             id:
                               format: uuid
                               type: string
-                            image_url:
-                              format: uri
-                              pattern: "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\\
-                                s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\\
-                                .(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}|\\[[0-9a-f:\\\
-                                .]+\\]|([a-z\xA1-\uFFFF0-9](?:[a-z\xA1-\uFFFF0-9-]{0,61}[a-z\xA1\
-                                -\uFFFF0-9])?(?:\\.(?!-)[a-z\xA1-\uFFFF0-9-]{1,63}(?<!-))*\\\
-                                .(?!-)(?:[a-z\xA1-\uFFFF-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\\
-                                .?|localhost))(?::\\d{2,5})?(?:[/?#][^\\s]*)?\\Z"
-                              type: string
+                            image:
+                              properties:
+                                height:
+                                  readOnly: true
+                                  type: integer
+                                id:
+                                  format: uuid
+                                  readOnly: true
+                                  type: string
+                                path:
+                                  readOnly: true
+                                  type: string
+                                s3_url:
+                                  readOnly: true
+                                  type: string
+                                status:
+                                  enum:
+                                  - checked
+                                  - unchecked
+                                  - error
+                                url:
+                                  readOnly: true
+                                  type: string
+                                width:
+                                  readOnly: true
+                                  type: integer
+                              required:
+                              - status
+                              type: object
                             polygon:
                               items:
                                 type: array
@@ -118,7 +137,7 @@ paths:
                           required:
                           - polygon
                           - center
-                          - image_url
+                          - image
                           type: object
                       required:
                       - name
@@ -1035,16 +1054,35 @@ paths:
                       id:
                         format: uuid
                         type: string
-                      image_url:
-                        format: uri
-                        pattern: "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\\
-                          s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\.(?:25[0-5]|2[0-4]\\\
-                          d|[0-1]?\\d?\\d)){3}|\\[[0-9a-f:\\.]+\\]|([a-z\xA1-\uFFFF\
-                          0-9](?:[a-z\xA1-\uFFFF0-9-]{0,61}[a-z\xA1-\uFFFF0-9])?(?:\\\
-                          .(?!-)[a-z\xA1-\uFFFF0-9-]{1,63}(?<!-))*\\.(?!-)(?:[a-z\xA1\
-                          -\uFFFF-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\.?|localhost))(?::\\\
-                          d{2,5})?(?:[/?#][^\\s]*)?\\Z"
-                        type: string
+                      image:
+                        properties:
+                          height:
+                            readOnly: true
+                            type: integer
+                          id:
+                            format: uuid
+                            readOnly: true
+                            type: string
+                          path:
+                            readOnly: true
+                            type: string
+                          s3_url:
+                            readOnly: true
+                            type: string
+                          status:
+                            enum:
+                            - checked
+                            - unchecked
+                            - error
+                          url:
+                            readOnly: true
+                            type: string
+                          width:
+                            readOnly: true
+                            type: integer
+                        required:
+                        - status
+                        type: object
                       polygon:
                         items:
                           type: array
@@ -1056,7 +1094,7 @@ paths:
                     required:
                     - polygon
                     - center
-                    - image_url
+                    - image
                     type: object
                 required:
                 - name
@@ -1262,16 +1300,35 @@ paths:
                       id:
                         format: uuid
                         type: string
-                      image_url:
-                        format: uri
-                        pattern: "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\\
-                          s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\.(?:25[0-5]|2[0-4]\\\
-                          d|[0-1]?\\d?\\d)){3}|\\[[0-9a-f:\\.]+\\]|([a-z\xA1-\uFFFF\
-                          0-9](?:[a-z\xA1-\uFFFF0-9-]{0,61}[a-z\xA1-\uFFFF0-9])?(?:\\\
-                          .(?!-)[a-z\xA1-\uFFFF0-9-]{1,63}(?<!-))*\\.(?!-)(?:[a-z\xA1\
-                          -\uFFFF-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\.?|localhost))(?::\\\
-                          d{2,5})?(?:[/?#][^\\s]*)?\\Z"
-                        type: string
+                      image:
+                        properties:
+                          height:
+                            readOnly: true
+                            type: integer
+                          id:
+                            format: uuid
+                            readOnly: true
+                            type: string
+                          path:
+                            readOnly: true
+                            type: string
+                          s3_url:
+                            readOnly: true
+                            type: string
+                          status:
+                            enum:
+                            - checked
+                            - unchecked
+                            - error
+                          url:
+                            readOnly: true
+                            type: string
+                          width:
+                            readOnly: true
+                            type: integer
+                        required:
+                        - status
+                        type: object
                       polygon:
                         items:
                           type: array
@@ -1283,7 +1340,7 @@ paths:
                     required:
                     - polygon
                     - center
-                    - image_url
+                    - image
                     type: object
                 required:
                 - name
@@ -1491,16 +1548,35 @@ paths:
                       id:
                         format: uuid
                         type: string
-                      image_url:
-                        format: uri
-                        pattern: "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\\
-                          s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\.(?:25[0-5]|2[0-4]\\\
-                          d|[0-1]?\\d?\\d)){3}|\\[[0-9a-f:\\.]+\\]|([a-z\xA1-\uFFFF\
-                          0-9](?:[a-z\xA1-\uFFFF0-9-]{0,61}[a-z\xA1-\uFFFF0-9])?(?:\\\
-                          .(?!-)[a-z\xA1-\uFFFF0-9-]{1,63}(?<!-))*\\.(?!-)(?:[a-z\xA1\
-                          -\uFFFF-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\.?|localhost))(?::\\\
-                          d{2,5})?(?:[/?#][^\\s]*)?\\Z"
-                        type: string
+                      image:
+                        properties:
+                          height:
+                            readOnly: true
+                            type: integer
+                          id:
+                            format: uuid
+                            readOnly: true
+                            type: string
+                          path:
+                            readOnly: true
+                            type: string
+                          s3_url:
+                            readOnly: true
+                            type: string
+                          status:
+                            enum:
+                            - checked
+                            - unchecked
+                            - error
+                          url:
+                            readOnly: true
+                            type: string
+                          width:
+                            readOnly: true
+                            type: integer
+                        required:
+                        - status
+                        type: object
                       polygon:
                         items:
                           type: array
@@ -1512,7 +1588,7 @@ paths:
                     required:
                     - polygon
                     - center
-                    - image_url
+                    - image
                     type: object
                 required:
                 - name
@@ -2324,16 +2400,35 @@ paths:
                             id:
                               format: uuid
                               type: string
-                            image_url:
-                              format: uri
-                              pattern: "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\\
-                                s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\\
-                                .(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}|\\[[0-9a-f:\\\
-                                .]+\\]|([a-z\xA1-\uFFFF0-9](?:[a-z\xA1-\uFFFF0-9-]{0,61}[a-z\xA1\
-                                -\uFFFF0-9])?(?:\\.(?!-)[a-z\xA1-\uFFFF0-9-]{1,63}(?<!-))*\\\
-                                .(?!-)(?:[a-z\xA1-\uFFFF-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\\
-                                .?|localhost))(?::\\d{2,5})?(?:[/?#][^\\s]*)?\\Z"
-                              type: string
+                            image:
+                              properties:
+                                height:
+                                  readOnly: true
+                                  type: integer
+                                id:
+                                  format: uuid
+                                  readOnly: true
+                                  type: string
+                                path:
+                                  readOnly: true
+                                  type: string
+                                s3_url:
+                                  readOnly: true
+                                  type: string
+                                status:
+                                  enum:
+                                  - checked
+                                  - unchecked
+                                  - error
+                                url:
+                                  readOnly: true
+                                  type: string
+                                width:
+                                  readOnly: true
+                                  type: integer
+                              required:
+                              - status
+                              type: object
                             polygon:
                               items:
                                 type: array
@@ -2344,7 +2439,7 @@ paths:
                           required:
                           - polygon
                           - center
-                          - image_url
+                          - image
                           type: object
                       required:
                       - source
@@ -2456,16 +2551,35 @@ paths:
                             id:
                               format: uuid
                               type: string
-                            image_url:
-                              format: uri
-                              pattern: "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\\
-                                s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\\
-                                .(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}|\\[[0-9a-f:\\\
-                                .]+\\]|([a-z\xA1-\uFFFF0-9](?:[a-z\xA1-\uFFFF0-9-]{0,61}[a-z\xA1\
-                                -\uFFFF0-9])?(?:\\.(?!-)[a-z\xA1-\uFFFF0-9-]{1,63}(?<!-))*\\\
-                                .(?!-)(?:[a-z\xA1-\uFFFF-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\\
-                                .?|localhost))(?::\\d{2,5})?(?:[/?#][^\\s]*)?\\Z"
-                              type: string
+                            image:
+                              properties:
+                                height:
+                                  readOnly: true
+                                  type: integer
+                                id:
+                                  format: uuid
+                                  readOnly: true
+                                  type: string
+                                path:
+                                  readOnly: true
+                                  type: string
+                                s3_url:
+                                  readOnly: true
+                                  type: string
+                                status:
+                                  enum:
+                                  - checked
+                                  - unchecked
+                                  - error
+                                url:
+                                  readOnly: true
+                                  type: string
+                                width:
+                                  readOnly: true
+                                  type: integer
+                              required:
+                              - status
+                              type: object
                             polygon:
                               items:
                                 type: array
@@ -2476,7 +2590,7 @@ paths:
                           required:
                           - polygon
                           - center
-                          - image_url
+                          - image
                           type: object
                       required:
                       - type
@@ -2733,16 +2847,35 @@ paths:
                             id:
                               format: uuid
                               type: string
-                            image_url:
-                              format: uri
-                              pattern: "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\\
-                                s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\\
-                                .(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}|\\[[0-9a-f:\\\
-                                .]+\\]|([a-z\xA1-\uFFFF0-9](?:[a-z\xA1-\uFFFF0-9-]{0,61}[a-z\xA1\
-                                -\uFFFF0-9])?(?:\\.(?!-)[a-z\xA1-\uFFFF0-9-]{1,63}(?<!-))*\\\
-                                .(?!-)(?:[a-z\xA1-\uFFFF-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\\
-                                .?|localhost))(?::\\d{2,5})?(?:[/?#][^\\s]*)?\\Z"
-                              type: string
+                            image:
+                              properties:
+                                height:
+                                  readOnly: true
+                                  type: integer
+                                id:
+                                  format: uuid
+                                  readOnly: true
+                                  type: string
+                                path:
+                                  readOnly: true
+                                  type: string
+                                s3_url:
+                                  readOnly: true
+                                  type: string
+                                status:
+                                  enum:
+                                  - checked
+                                  - unchecked
+                                  - error
+                                url:
+                                  readOnly: true
+                                  type: string
+                                width:
+                                  readOnly: true
+                                  type: integer
+                              required:
+                              - status
+                              type: object
                             polygon:
                               items:
                                 type: array
@@ -2754,7 +2887,7 @@ paths:
                           required:
                           - polygon
                           - center
-                          - image_url
+                          - image
                           type: object
                       required:
                       - name
@@ -2954,18 +3087,35 @@ paths:
                                   id:
                                     format: uuid
                                     type: string
-                                  image_url:
-                                    format: uri
-                                    pattern: "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\\
-                                      s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\\
-                                      d?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\\
-                                      d)){3}|\\[[0-9a-f:\\.]+\\]|([a-z\xA1-\uFFFF\
-                                      0-9](?:[a-z\xA1-\uFFFF0-9-]{0,61}[a-z\xA1-\uFFFF\
-                                      0-9])?(?:\\.(?!-)[a-z\xA1-\uFFFF0-9-]{1,63}(?<!-))*\\\
-                                      .(?!-)(?:[a-z\xA1-\uFFFF-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\\
-                                      .?|localhost))(?::\\d{2,5})?(?:[/?#][^\\s]*)?\\\
-                                      Z"
-                                    type: string
+                                  image:
+                                    properties:
+                                      height:
+                                        readOnly: true
+                                        type: integer
+                                      id:
+                                        format: uuid
+                                        readOnly: true
+                                        type: string
+                                      path:
+                                        readOnly: true
+                                        type: string
+                                      s3_url:
+                                        readOnly: true
+                                        type: string
+                                      status:
+                                        enum:
+                                        - checked
+                                        - unchecked
+                                        - error
+                                      url:
+                                        readOnly: true
+                                        type: string
+                                      width:
+                                        readOnly: true
+                                        type: integer
+                                    required:
+                                    - status
+                                    type: object
                                   polygon:
                                     items:
                                       type: array
@@ -2976,7 +3126,7 @@ paths:
                                 required:
                                 - polygon
                                 - center
-                                - image_url
+                                - image
                                 type: object
                             required:
                             - type
@@ -3077,16 +3227,35 @@ paths:
                       id:
                         format: uuid
                         type: string
-                      image_url:
-                        format: uri
-                        pattern: "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\\
-                          s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\.(?:25[0-5]|2[0-4]\\\
-                          d|[0-1]?\\d?\\d)){3}|\\[[0-9a-f:\\.]+\\]|([a-z\xA1-\uFFFF\
-                          0-9](?:[a-z\xA1-\uFFFF0-9-]{0,61}[a-z\xA1-\uFFFF0-9])?(?:\\\
-                          .(?!-)[a-z\xA1-\uFFFF0-9-]{1,63}(?<!-))*\\.(?!-)(?:[a-z\xA1\
-                          -\uFFFF-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\.?|localhost))(?::\\\
-                          d{2,5})?(?:[/?#][^\\s]*)?\\Z"
-                        type: string
+                      image:
+                        properties:
+                          height:
+                            readOnly: true
+                            type: integer
+                          id:
+                            format: uuid
+                            readOnly: true
+                            type: string
+                          path:
+                            readOnly: true
+                            type: string
+                          s3_url:
+                            readOnly: true
+                            type: string
+                          status:
+                            enum:
+                            - checked
+                            - unchecked
+                            - error
+                          url:
+                            readOnly: true
+                            type: string
+                          width:
+                            readOnly: true
+                            type: integer
+                        required:
+                        - status
+                        type: object
                       polygon:
                         items:
                           type: array
@@ -3098,7 +3267,7 @@ paths:
                     required:
                     - polygon
                     - center
-                    - image_url
+                    - image
                     type: object
                 required:
                 - name
@@ -3218,16 +3387,35 @@ paths:
                             id:
                               format: uuid
                               type: string
-                            image_url:
-                              format: uri
-                              pattern: "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\\
-                                s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\\
-                                .(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}|\\[[0-9a-f:\\\
-                                .]+\\]|([a-z\xA1-\uFFFF0-9](?:[a-z\xA1-\uFFFF0-9-]{0,61}[a-z\xA1\
-                                -\uFFFF0-9])?(?:\\.(?!-)[a-z\xA1-\uFFFF0-9-]{1,63}(?<!-))*\\\
-                                .(?!-)(?:[a-z\xA1-\uFFFF-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\\
-                                .?|localhost))(?::\\d{2,5})?(?:[/?#][^\\s]*)?\\Z"
-                              type: string
+                            image:
+                              properties:
+                                height:
+                                  readOnly: true
+                                  type: integer
+                                id:
+                                  format: uuid
+                                  readOnly: true
+                                  type: string
+                                path:
+                                  readOnly: true
+                                  type: string
+                                s3_url:
+                                  readOnly: true
+                                  type: string
+                                status:
+                                  enum:
+                                  - checked
+                                  - unchecked
+                                  - error
+                                url:
+                                  readOnly: true
+                                  type: string
+                                width:
+                                  readOnly: true
+                                  type: integer
+                              required:
+                              - status
+                              type: object
                             polygon:
                               items:
                                 type: array
@@ -3239,7 +3427,7 @@ paths:
                           required:
                           - polygon
                           - center
-                          - image_url
+                          - image
                           type: object
                       required:
                       - name
@@ -3326,101 +3514,6 @@ paths:
           description: ''
       tags:
       - elements
-  /api/v1/elements/{id}/pages/:
-    get:
-      description: Detailed list of all children pages of an element
-      operationId: ListElementPages
-      parameters:
-      - description: ''
-        in: path
-        name: id
-        required: true
-        schema:
-          type: string
-      - description: A page number within the paginated result set.
-        in: query
-        name: page
-        required: false
-        schema:
-          type: integer
-      - description: Number of results to return per page.
-        in: query
-        name: page_size
-        required: false
-        schema:
-          type: integer
-      responses:
-        '200':
-          content:
-            application/json:
-              schema:
-                properties:
-                  count:
-                    example: 123
-                    type: integer
-                  next:
-                    nullable: true
-                    type: string
-                  number:
-                    example: 123
-                    type: integer
-                  previous:
-                    nullable: true
-                    type: string
-                  results:
-                    items:
-                      properties:
-                        id:
-                          format: uuid
-                          type: string
-                        image:
-                          properties:
-                            height:
-                              readOnly: true
-                              type: integer
-                            id:
-                              format: uuid
-                              readOnly: true
-                              type: string
-                            path:
-                              readOnly: true
-                              type: string
-                            s3_url:
-                              readOnly: true
-                              type: string
-                            status:
-                              enum:
-                              - checked
-                              - unchecked
-                              - error
-                            url:
-                              readOnly: true
-                              type: string
-                            width:
-                              readOnly: true
-                              type: integer
-                          required:
-                          - status
-                          type: object
-                        name:
-                          maxLength: 250
-                          type: string
-                        type:
-                          enum:
-                          - volume
-                          - act
-                          - page
-                          - surface
-                      required:
-                      - type
-                      - name
-                      - image
-                    type: array
-                type: object
-          description: ''
-      security: []
-      tags:
-      - elements
   /api/v1/entity/:
     post:
       description: Create a new entity
@@ -6722,16 +6815,35 @@ paths:
                             id:
                               format: uuid
                               type: string
-                            image_url:
-                              format: uri
-                              pattern: "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\\
-                                s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\\
-                                .(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}|\\[[0-9a-f:\\\
-                                .]+\\]|([a-z\xA1-\uFFFF0-9](?:[a-z\xA1-\uFFFF0-9-]{0,61}[a-z\xA1\
-                                -\uFFFF0-9])?(?:\\.(?!-)[a-z\xA1-\uFFFF0-9-]{1,63}(?<!-))*\\\
-                                .(?!-)(?:[a-z\xA1-\uFFFF-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\\
-                                .?|localhost))(?::\\d{2,5})?(?:[/?#][^\\s]*)?\\Z"
-                              type: string
+                            image:
+                              properties:
+                                height:
+                                  readOnly: true
+                                  type: integer
+                                id:
+                                  format: uuid
+                                  readOnly: true
+                                  type: string
+                                path:
+                                  readOnly: true
+                                  type: string
+                                s3_url:
+                                  readOnly: true
+                                  type: string
+                                status:
+                                  enum:
+                                  - checked
+                                  - unchecked
+                                  - error
+                                url:
+                                  readOnly: true
+                                  type: string
+                                width:
+                                  readOnly: true
+                                  type: integer
+                              required:
+                              - status
+                              type: object
                             polygon:
                               items:
                                 type: array
@@ -6743,7 +6855,7 @@ paths:
                           required:
                           - polygon
                           - center
-                          - image_url
+                          - image
                           type: object
                       required:
                       - name
@@ -8938,16 +9050,35 @@ paths:
                             id:
                               format: uuid
                               type: string
-                            image_url:
-                              format: uri
-                              pattern: "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\\
-                                s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\\
-                                .(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}|\\[[0-9a-f:\\\
-                                .]+\\]|([a-z\xA1-\uFFFF0-9](?:[a-z\xA1-\uFFFF0-9-]{0,61}[a-z\xA1\
-                                -\uFFFF0-9])?(?:\\.(?!-)[a-z\xA1-\uFFFF0-9-]{1,63}(?<!-))*\\\
-                                .(?!-)(?:[a-z\xA1-\uFFFF-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\\
-                                .?|localhost))(?::\\d{2,5})?(?:[/?#][^\\s]*)?\\Z"
-                              type: string
+                            image:
+                              properties:
+                                height:
+                                  readOnly: true
+                                  type: integer
+                                id:
+                                  format: uuid
+                                  readOnly: true
+                                  type: string
+                                path:
+                                  readOnly: true
+                                  type: string
+                                s3_url:
+                                  readOnly: true
+                                  type: string
+                                status:
+                                  enum:
+                                  - checked
+                                  - unchecked
+                                  - error
+                                url:
+                                  readOnly: true
+                                  type: string
+                                width:
+                                  readOnly: true
+                                  type: integer
+                              required:
+                              - status
+                              type: object
                             polygon:
                               items:
                                 type: array
@@ -8958,7 +9089,7 @@ paths:
                           required:
                           - polygon
                           - center
-                          - image_url
+                          - image
                           type: object
                       required:
                       - type
@@ -9089,16 +9220,35 @@ paths:
                       id:
                         format: uuid
                         type: string
-                      image_url:
-                        format: uri
-                        pattern: "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\\
-                          s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\.(?:25[0-5]|2[0-4]\\\
-                          d|[0-1]?\\d?\\d)){3}|\\[[0-9a-f:\\.]+\\]|([a-z\xA1-\uFFFF\
-                          0-9](?:[a-z\xA1-\uFFFF0-9-]{0,61}[a-z\xA1-\uFFFF0-9])?(?:\\\
-                          .(?!-)[a-z\xA1-\uFFFF0-9-]{1,63}(?<!-))*\\.(?!-)(?:[a-z\xA1\
-                          -\uFFFF-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\.?|localhost))(?::\\\
-                          d{2,5})?(?:[/?#][^\\s]*)?\\Z"
-                        type: string
+                      image:
+                        properties:
+                          height:
+                            readOnly: true
+                            type: integer
+                          id:
+                            format: uuid
+                            readOnly: true
+                            type: string
+                          path:
+                            readOnly: true
+                            type: string
+                          s3_url:
+                            readOnly: true
+                            type: string
+                          status:
+                            enum:
+                            - checked
+                            - unchecked
+                            - error
+                          url:
+                            readOnly: true
+                            type: string
+                          width:
+                            readOnly: true
+                            type: integer
+                        required:
+                        - status
+                        type: object
                       polygon:
                         items:
                           type: array
@@ -9109,7 +9259,7 @@ paths:
                     required:
                     - polygon
                     - center
-                    - image_url
+                    - image
                     type: object
                 required:
                 - source
@@ -9251,17 +9401,35 @@ paths:
                                 id:
                                   format: uuid
                                   type: string
-                                image_url:
-                                  format: uri
-                                  pattern: "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\\
-                                    s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\\
-                                    d)(?:\\.(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}|\\\
-                                    [[0-9a-f:\\.]+\\]|([a-z\xA1-\uFFFF0-9](?:[a-z\xA1\
-                                    -\uFFFF0-9-]{0,61}[a-z\xA1-\uFFFF0-9])?(?:\\.(?!-)[a-z\xA1\
-                                    -\uFFFF0-9-]{1,63}(?<!-))*\\.(?!-)(?:[a-z\xA1\
-                                    -\uFFFF-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\.?|localhost))(?::\\\
-                                    d{2,5})?(?:[/?#][^\\s]*)?\\Z"
-                                  type: string
+                                image:
+                                  properties:
+                                    height:
+                                      readOnly: true
+                                      type: integer
+                                    id:
+                                      format: uuid
+                                      readOnly: true
+                                      type: string
+                                    path:
+                                      readOnly: true
+                                      type: string
+                                    s3_url:
+                                      readOnly: true
+                                      type: string
+                                    status:
+                                      enum:
+                                      - checked
+                                      - unchecked
+                                      - error
+                                    url:
+                                      readOnly: true
+                                      type: string
+                                    width:
+                                      readOnly: true
+                                      type: integer
+                                  required:
+                                  - status
+                                  type: object
                                 polygon:
                                   items:
                                     type: array
@@ -9272,7 +9440,7 @@ paths:
                               required:
                               - polygon
                               - center
-                              - image_url
+                              - image
                               type: object
                           required:
                           - type
@@ -9294,16 +9462,35 @@ paths:
                       id:
                         format: uuid
                         type: string
-                      image_url:
-                        format: uri
-                        pattern: "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\\
-                          s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(?:\\.(?:25[0-5]|2[0-4]\\\
-                          d|[0-1]?\\d?\\d)){3}|\\[[0-9a-f:\\.]+\\]|([a-z\xA1-\uFFFF\
-                          0-9](?:[a-z\xA1-\uFFFF0-9-]{0,61}[a-z\xA1-\uFFFF0-9])?(?:\\\
-                          .(?!-)[a-z\xA1-\uFFFF0-9-]{1,63}(?<!-))*\\.(?!-)(?:[a-z\xA1\
-                          -\uFFFF-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\.?|localhost))(?::\\\
-                          d{2,5})?(?:[/?#][^\\s]*)?\\Z"
-                        type: string
+                      image:
+                        properties:
+                          height:
+                            readOnly: true
+                            type: integer
+                          id:
+                            format: uuid
+                            readOnly: true
+                            type: string
+                          path:
+                            readOnly: true
+                            type: string
+                          s3_url:
+                            readOnly: true
+                            type: string
+                          status:
+                            enum:
+                            - checked
+                            - unchecked
+                            - error
+                          url:
+                            readOnly: true
+                            type: string
+                          width:
+                            readOnly: true
+                            type: integer
+                        required:
+                        - status
+                        type: object
                       polygon:
                         items:
                           type: array
@@ -9314,7 +9501,7 @@ paths:
                     required:
                     - polygon
                     - center
-                    - image_url
+                    - image
                     type: object
                 required:
                 - name
-- 
GitLab