From cdceccaa939a08190dc438fe3614659c3090aa8e Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Thu, 16 Apr 2020 00:47:26 +0100 Subject: docs: Resolve issues with 'bundles' Errors are reported as a mapping of the field name to an array of errors, not a string. Signed-off-by: Stephen Finucane --- docs/api/schemas/latest/patchwork.yaml | 12 +++++++++--- docs/api/schemas/patchwork.j2 | 12 +++++++++--- docs/api/schemas/v1.2/patchwork.yaml | 12 +++++++++--- 3 files changed, 27 insertions(+), 9 deletions(-) (limited to 'docs/api') diff --git a/docs/api/schemas/latest/patchwork.yaml b/docs/api/schemas/latest/patchwork.yaml index dbfa0aa..8d5acdd 100644 --- a/docs/api/schemas/latest/patchwork.yaml +++ b/docs/api/schemas/latest/patchwork.yaml @@ -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: diff --git a/docs/api/schemas/patchwork.j2 b/docs/api/schemas/patchwork.j2 index f4628ee..98ca16c 100644 --- a/docs/api/schemas/patchwork.j2 +++ b/docs/api/schemas/patchwork.j2 @@ -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 diff --git a/docs/api/schemas/v1.2/patchwork.yaml b/docs/api/schemas/v1.2/patchwork.yaml index 1b69229..0007cd2 100644 --- a/docs/api/schemas/v1.2/patchwork.yaml +++ b/docs/api/schemas/v1.2/patchwork.yaml @@ -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: -- cgit v1.2.3