]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
docs: Resolve issues with 'patches'
authorStephen Finucane <stephen@that.guru>
Wed, 15 Apr 2020 22:36:59 +0000 (23:36 +0100)
committerStephen Finucane <stephen@that.guru>
Sat, 18 Apr 2020 10:57:28 +0000 (11:57 +0100)
Four issues to resolve:

- The 'tags' field is a key-value mapping, not an array.
- Each header in the 'headers' field can be either a string or a list
  value.
- Errors are reported as a mapping of the field name to an array of
  errors, not a string.
- The security type information isn't complete and doesn't account for
  security types. Skip it for now.

Signed-off-by: Stephen Finucane <stephen@that.guru>
docs/api/schemas/latest/patchwork.yaml
docs/api/schemas/patchwork.j2
docs/api/schemas/v1.0/patchwork.yaml
docs/api/schemas/v1.1/patchwork.yaml
docs/api/schemas/v1.2/patchwork.yaml

index 6232d874f9aace8b371079fa0a0e6e3a4b280948..e0054b929bcb09601c5cf8b0e912727dedd04da2 100644 (file)
@@ -76,9 +76,9 @@ paths:
     post:
       description: Create a bundle.
       operationId: bundles_create
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Bundle'
       responses:
@@ -132,9 +132,9 @@ paths:
     patch:
       description: Update a bundle (partial).
       operationId: bundles_partial_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Bundle'
       responses:
@@ -167,9 +167,9 @@ paths:
     put:
       description: Update a bundle.
       operationId: bundles_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Bundle'
       responses:
@@ -519,9 +519,9 @@ paths:
     patch:
       description: Update a patch (partial).
       operationId: patches_partial_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Patch'
       responses:
@@ -560,9 +560,9 @@ paths:
     put:
       description: Update a patch.
       operationId: patches_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Patch'
       responses:
@@ -700,9 +700,9 @@ paths:
     post:
       description: Create a check.
       operationId: checks_create
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Check'
       responses:
@@ -770,9 +770,9 @@ paths:
     get:
       description: List people.
       operationId: people_list
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       parameters:
         - $ref: '#/components/parameters/Page'
         - $ref: '#/components/parameters/PageSize'
@@ -810,9 +810,9 @@ paths:
     get:
       description: Show a person.
       operationId: people_read
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       responses:
         '200':
           description: ''
@@ -887,9 +887,9 @@ paths:
     patch:
       description: Update a project (partial).
       operationId: projects_partial_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Project'
       responses:
@@ -922,9 +922,9 @@ paths:
     put:
       description: Update a project.
       operationId: projects_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Project'
       responses:
@@ -1022,9 +1022,9 @@ paths:
     get:
       description: List users.
       operationId: users_list
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       parameters:
         - $ref: '#/components/parameters/Page'
         - $ref: '#/components/parameters/PageSize'
@@ -1062,9 +1062,9 @@ paths:
     get:
       description: Show a user.
       operationId: users_read
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       responses:
         '200':
           description: ''
@@ -1089,9 +1089,9 @@ paths:
     patch:
       description: Update a user (partial).
       operationId: users_partial_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/User'
       responses:
@@ -1124,9 +1124,9 @@ paths:
     put:
       description: Update a user.
       operationId: users_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/User'
       responses:
@@ -1871,8 +1871,8 @@ components:
           readOnly: true
         tags:
           title: Tags
-          type: array
-          items:
+          type: object
+          additionalProperties:
             type: string
           readOnly: true
         related:
@@ -1886,9 +1886,15 @@ components:
         - properties:
             headers:
               title: Headers
-              type: array
-              items:
-                type: string
+              anyOf:
+                - type: object
+                  additionalProperties:
+                    type: array
+                    items:
+                      type: string
+                - type: object
+                  additionalProperties:
+                    type: string
               readOnly: true
             content:
               title: Content
@@ -2532,19 +2538,27 @@ components:
       properties:
         state:
           title: State
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
         delegate:
           title: Delegate
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
         commit_ref:
           title: Commit ref
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
         archived:
           title: Archived
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
     ErrorProjectUpdate:
       type: object
index a1496e135823a30b0f661f05d67d3240b80ae131..66904d035515d4307955f6e94cd346227ed452df 100644 (file)
@@ -78,9 +78,9 @@ paths:
     post:
       description: Create a bundle.
       operationId: bundles_create
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Bundle'
       responses:
@@ -136,9 +136,9 @@ paths:
     patch:
       description: Update a bundle (partial).
       operationId: bundles_partial_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Bundle'
       responses:
@@ -171,9 +171,9 @@ paths:
     put:
       description: Update a bundle.
       operationId: bundles_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Bundle'
       responses:
@@ -536,9 +536,9 @@ paths:
     patch:
       description: Update a patch (partial).
       operationId: patches_partial_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Patch'
       responses:
@@ -579,9 +579,9 @@ paths:
     put:
       description: Update a patch.
       operationId: patches_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Patch'
       responses:
@@ -721,9 +721,9 @@ paths:
     post:
       description: Create a check.
       operationId: checks_create
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Check'
       responses:
@@ -791,9 +791,9 @@ paths:
     get:
       description: List people.
       operationId: people_list
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       parameters:
         - $ref: '#/components/parameters/Page'
         - $ref: '#/components/parameters/PageSize'
@@ -831,9 +831,9 @@ paths:
     get:
       description: Show a person.
       operationId: people_read
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       responses:
         '200':
           description: ''
@@ -908,9 +908,9 @@ paths:
     patch:
       description: Update a project (partial).
       operationId: projects_partial_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Project'
       responses:
@@ -943,9 +943,9 @@ paths:
     put:
       description: Update a project.
       operationId: projects_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Project'
       responses:
@@ -1043,9 +1043,9 @@ paths:
     get:
       description: List users.
       operationId: users_list
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       parameters:
         - $ref: '#/components/parameters/Page'
         - $ref: '#/components/parameters/PageSize'
@@ -1083,9 +1083,9 @@ paths:
     get:
       description: Show a user.
       operationId: users_read
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       responses:
         '200':
           description: ''
@@ -1114,9 +1114,9 @@ paths:
     patch:
       description: Update a user (partial).
       operationId: users_partial_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/User'
       responses:
@@ -1153,9 +1153,9 @@ paths:
     put:
       description: Update a user.
       operationId: users_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/User'
       responses:
@@ -1947,8 +1947,8 @@ components:
           readOnly: true
         tags:
           title: Tags
-          type: array
-          items:
+          type: object
+          additionalProperties:
             type: string
           readOnly: true
 {% if version >= (1, 2) %}
@@ -1964,9 +1964,15 @@ components:
         - properties:
             headers:
               title: Headers
-              type: array
-              items:
-                type: string
+              anyOf:
+                - type: object
+                  additionalProperties:
+                    type: array
+                    items:
+                      type: string
+                - type: object
+                  additionalProperties:
+                    type: string
               readOnly: true
             content:
               title: Content
@@ -2634,19 +2640,27 @@ components:
       properties:
         state:
           title: State
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
         delegate:
           title: Delegate
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
         commit_ref:
           title: Commit ref
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
         archived:
           title: Archived
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
     ErrorProjectUpdate:
       type: object
index 31b8d91c7f24589bbbb56bab01754333bac19723..9205c4f02afe16ccb238411386ba18aadd00767a 100644 (file)
@@ -392,9 +392,9 @@ paths:
     patch:
       description: Update a patch (partial).
       operationId: patches_partial_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Patch'
       responses:
@@ -427,9 +427,9 @@ paths:
     put:
       description: Update a patch.
       operationId: patches_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Patch'
       responses:
@@ -561,9 +561,9 @@ paths:
     post:
       description: Create a check.
       operationId: checks_create
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Check'
       responses:
@@ -631,9 +631,9 @@ paths:
     get:
       description: List people.
       operationId: people_list
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       parameters:
         - $ref: '#/components/parameters/Page'
         - $ref: '#/components/parameters/PageSize'
@@ -671,9 +671,9 @@ paths:
     get:
       description: Show a person.
       operationId: people_read
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       responses:
         '200':
           description: ''
@@ -748,9 +748,9 @@ paths:
     patch:
       description: Update a project (partial).
       operationId: projects_partial_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Project'
       responses:
@@ -783,9 +783,9 @@ paths:
     put:
       description: Update a project.
       operationId: projects_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Project'
       responses:
@@ -883,9 +883,9 @@ paths:
     get:
       description: List users.
       operationId: users_list
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       parameters:
         - $ref: '#/components/parameters/Page'
         - $ref: '#/components/parameters/PageSize'
@@ -923,9 +923,9 @@ paths:
     get:
       description: Show a user.
       operationId: users_read
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       responses:
         '200':
           description: ''
@@ -950,9 +950,9 @@ paths:
     patch:
       description: Update a user (partial).
       operationId: users_partial_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/User'
       responses:
@@ -985,9 +985,9 @@ paths:
     put:
       description: Update a user.
       operationId: users_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/User'
       responses:
@@ -1627,8 +1627,8 @@ components:
           readOnly: true
         tags:
           title: Tags
-          type: array
-          items:
+          type: object
+          additionalProperties:
             type: string
           readOnly: true
     PatchDetail:
@@ -1637,9 +1637,15 @@ components:
         - properties:
             headers:
               title: Headers
-              type: array
-              items:
-                type: string
+              anyOf:
+                - type: object
+                  additionalProperties:
+                    type: array
+                    items:
+                      type: string
+                - type: object
+                  additionalProperties:
+                    type: string
               readOnly: true
             content:
               title: Content
@@ -2159,19 +2165,27 @@ components:
       properties:
         state:
           title: State
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
         delegate:
           title: Delegate
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
         commit_ref:
           title: Commit ref
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
         archived:
           title: Archived
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
     ErrorProjectUpdate:
       type: object
index 943ecc58300b98153518a3aa647c3143593f0034..993bf51f0b8f86e13bcd8637650f3ad8e81f2ad8 100644 (file)
@@ -392,9 +392,9 @@ paths:
     patch:
       description: Update a patch (partial).
       operationId: patches_partial_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Patch'
       responses:
@@ -427,9 +427,9 @@ paths:
     put:
       description: Update a patch.
       operationId: patches_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Patch'
       responses:
@@ -561,9 +561,9 @@ paths:
     post:
       description: Create a check.
       operationId: checks_create
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Check'
       responses:
@@ -631,9 +631,9 @@ paths:
     get:
       description: List people.
       operationId: people_list
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       parameters:
         - $ref: '#/components/parameters/Page'
         - $ref: '#/components/parameters/PageSize'
@@ -671,9 +671,9 @@ paths:
     get:
       description: Show a person.
       operationId: people_read
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       responses:
         '200':
           description: ''
@@ -748,9 +748,9 @@ paths:
     patch:
       description: Update a project (partial).
       operationId: projects_partial_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Project'
       responses:
@@ -783,9 +783,9 @@ paths:
     put:
       description: Update a project.
       operationId: projects_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Project'
       responses:
@@ -883,9 +883,9 @@ paths:
     get:
       description: List users.
       operationId: users_list
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       parameters:
         - $ref: '#/components/parameters/Page'
         - $ref: '#/components/parameters/PageSize'
@@ -923,9 +923,9 @@ paths:
     get:
       description: Show a user.
       operationId: users_read
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       responses:
         '200':
           description: ''
@@ -950,9 +950,9 @@ paths:
     patch:
       description: Update a user (partial).
       operationId: users_partial_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/User'
       responses:
@@ -985,9 +985,9 @@ paths:
     put:
       description: Update a user.
       operationId: users_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/User'
       responses:
@@ -1680,8 +1680,8 @@ components:
           readOnly: true
         tags:
           title: Tags
-          type: array
-          items:
+          type: object
+          additionalProperties:
             type: string
           readOnly: true
     PatchDetail:
@@ -1690,9 +1690,15 @@ components:
         - properties:
             headers:
               title: Headers
-              type: array
-              items:
-                type: string
+              anyOf:
+                - type: object
+                  additionalProperties:
+                    type: array
+                    items:
+                      type: string
+                - type: object
+                  additionalProperties:
+                    type: string
               readOnly: true
             content:
               title: Content
@@ -2243,19 +2249,27 @@ components:
       properties:
         state:
           title: State
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
         delegate:
           title: Delegate
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
         commit_ref:
           title: Commit ref
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
         archived:
           title: Archived
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
     ErrorProjectUpdate:
       type: object
index 816684018806bc28a1423fad351eac967bb7c408..aac70321dae37adaf10a2e0ecd6e9fd06d009a04 100644 (file)
@@ -76,9 +76,9 @@ paths:
     post:
       description: Create a bundle.
       operationId: bundles_create
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Bundle'
       responses:
@@ -132,9 +132,9 @@ paths:
     patch:
       description: Update a bundle (partial).
       operationId: bundles_partial_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Bundle'
       responses:
@@ -167,9 +167,9 @@ paths:
     put:
       description: Update a bundle.
       operationId: bundles_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Bundle'
       responses:
@@ -519,9 +519,9 @@ paths:
     patch:
       description: Update a patch (partial).
       operationId: patches_partial_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Patch'
       responses:
@@ -560,9 +560,9 @@ paths:
     put:
       description: Update a patch.
       operationId: patches_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Patch'
       responses:
@@ -700,9 +700,9 @@ paths:
     post:
       description: Create a check.
       operationId: checks_create
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Check'
       responses:
@@ -770,9 +770,9 @@ paths:
     get:
       description: List people.
       operationId: people_list
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       parameters:
         - $ref: '#/components/parameters/Page'
         - $ref: '#/components/parameters/PageSize'
@@ -810,9 +810,9 @@ paths:
     get:
       description: Show a person.
       operationId: people_read
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       responses:
         '200':
           description: ''
@@ -887,9 +887,9 @@ paths:
     patch:
       description: Update a project (partial).
       operationId: projects_partial_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Project'
       responses:
@@ -922,9 +922,9 @@ paths:
     put:
       description: Update a project.
       operationId: projects_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/Project'
       responses:
@@ -1022,9 +1022,9 @@ paths:
     get:
       description: List users.
       operationId: users_list
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       parameters:
         - $ref: '#/components/parameters/Page'
         - $ref: '#/components/parameters/PageSize'
@@ -1062,9 +1062,9 @@ paths:
     get:
       description: Show a user.
       operationId: users_read
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       responses:
         '200':
           description: ''
@@ -1089,9 +1089,9 @@ paths:
     patch:
       description: Update a user (partial).
       operationId: users_partial_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/User'
       responses:
@@ -1124,9 +1124,9 @@ paths:
     put:
       description: Update a user.
       operationId: users_update
-      security:
-        - basicAuth: []
-        - apiKeyAuth: []
+#      security:
+#        - basicAuth: []
+#        - apiKeyAuth: []
       requestBody:
         $ref: '#/components/requestBodies/User'
       responses:
@@ -1871,8 +1871,8 @@ components:
           readOnly: true
         tags:
           title: Tags
-          type: array
-          items:
+          type: object
+          additionalProperties:
             type: string
           readOnly: true
         related:
@@ -1886,9 +1886,15 @@ components:
         - properties:
             headers:
               title: Headers
-              type: array
-              items:
-                type: string
+              anyOf:
+                - type: object
+                  additionalProperties:
+                    type: array
+                    items:
+                      type: string
+                - type: object
+                  additionalProperties:
+                    type: string
               readOnly: true
             content:
               title: Content
@@ -2532,19 +2538,27 @@ components:
       properties:
         state:
           title: State
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
         delegate:
           title: Delegate
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
         commit_ref:
           title: Commit ref
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
         archived:
           title: Archived
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
     ErrorProjectUpdate:
       type: object