]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
docs: Resolve issues with 'bundles'
authorStephen Finucane <stephen@that.guru>
Wed, 15 Apr 2020 23:47:26 +0000 (00:47 +0100)
committerStephen Finucane <stephen@that.guru>
Sat, 18 Apr 2020 10:57:28 +0000 (11:57 +0100)
Errors are reported as a mapping of the field name to an array of
errors, not a string.

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

index dbfa0aab30bd5820fb83a7ef30bb0484095619aa..8d5acddba7ee9c702be625b5f02228f3d209d75e 100644 (file)
@@ -2506,15 +2506,21 @@ components:
       properties:
         name:
           title: Name
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
         patches:
           title: Patches
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
         public:
           title: Public
-          type: string
+          type: array
+          items:
+            type: string
     ErrorCheckCreate:
       type: object
       properties:
index f4628ee233a82e986aa16e2652970d7e447b6a6c..98ca16cc644a6d52d1949cdfeb098e1f3cea9d4b 100644 (file)
@@ -2607,15 +2607,21 @@ components:
       properties:
         name:
           title: Name
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
         patches:
           title: Patches
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
         public:
           title: Public
-          type: string
+          type: array
+          items:
+            type: string
 {% endif %}
     ErrorCheckCreate:
       type: object
index 1b69229045392a2eec9d25db597e4e3703e87aca..0007cd265f464ad6c7b5af20a2ed84303ecd94f9 100644 (file)
@@ -2506,15 +2506,21 @@ components:
       properties:
         name:
           title: Name
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
         patches:
           title: Patches
-          type: string
+          type: array
+          items:
+            type: string
           readOnly: true
         public:
           title: Public
-          type: string
+          type: array
+          items:
+            type: string
     ErrorCheckCreate:
       type: object
       properties: