]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
docs: Resolve issues with 'comments'
authorStephen Finucane <stephen@that.guru>
Thu, 16 Apr 2020 10:48:29 +0000 (11:48 +0100)
committerStephen Finucane <stephen@that.guru>
Sat, 18 Apr 2020 10:57:28 +0000 (11:57 +0100)
Each header in the 'headers' field can be either a string or a list
value.

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 794140a377113c9f603ff0106984bdf057611bab..28c18495ec703df3f785363b28bd9dd6f64f2dca 100644 (file)
@@ -1518,9 +1518,15 @@ components:
           minLength: 1
         headers:
           title: Headers
-          type: array
-          items:
-            type: string
+          anyOf:
+            - type: object
+              additionalProperties:
+                type: array
+                items:
+                  type: string
+            - type: object
+              additionalProperties:
+                type: string
           readOnly: true
     CoverLetterList:
       type: object
index 867add9430d4f674356f7334aae4a199857a096d..13cc27820c053176f57529ca31c9af62fa27f5e2 100644 (file)
@@ -1576,9 +1576,15 @@ components:
           minLength: 1
         headers:
           title: Headers
-          type: array
-          items:
-            type: string
+          anyOf:
+            - type: object
+              additionalProperties:
+                type: array
+                items:
+                  type: string
+            - type: object
+              additionalProperties:
+                type: string
           readOnly: true
     CoverLetterList:
       type: object
index b697ce9a5202616f1b78eba6971256bf769bfa23..92801ec62296d72203bd2c1f0b807de99d280f49 100644 (file)
@@ -1334,9 +1334,15 @@ components:
           minLength: 1
         headers:
           title: Headers
-          type: array
-          items:
-            type: string
+          anyOf:
+            - type: object
+              additionalProperties:
+                type: array
+                items:
+                  type: string
+            - type: object
+              additionalProperties:
+                type: string
           readOnly: true
     CoverLetterList:
       type: object
index 45790c823497fb6f2320a27299abb14b55c2a4b3..d57b5356bac088f28069dce8caf0827d4bd5a672 100644 (file)
@@ -1344,9 +1344,15 @@ components:
           minLength: 1
         headers:
           title: Headers
-          type: array
-          items:
-            type: string
+          anyOf:
+            - type: object
+              additionalProperties:
+                type: array
+                items:
+                  type: string
+            - type: object
+              additionalProperties:
+                type: string
           readOnly: true
     CoverLetterList:
       type: object
index e02c6123a8e7468270f34c86d4c349c9e51e813a..f2ee2a85cfacef77e417f4cd2cc06fd226425f9a 100644 (file)
@@ -1518,9 +1518,15 @@ components:
           minLength: 1
         headers:
           title: Headers
-          type: array
-          items:
-            type: string
+          anyOf:
+            - type: object
+              additionalProperties:
+                type: array
+                items:
+                  type: string
+            - type: object
+              additionalProperties:
+                type: string
           readOnly: true
     CoverLetterList:
       type: object