From d9d8968c7c6afbbdac1fb81c34a08bc2dc6e6b8b Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Thu, 16 Apr 2020 10:02:36 +0100 Subject: docs: Resolve issues with 'patches' Two issues: - Errors are reported as a mapping of the field name to an array of errors, not a string. - We were attempting to validate an invalid request. Signed-off-by: Stephen Finucane --- docs/api/schemas/patchwork.j2 | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'docs/api/schemas/patchwork.j2') diff --git a/docs/api/schemas/patchwork.j2 b/docs/api/schemas/patchwork.j2 index 56ecd83..867add9 100644 --- a/docs/api/schemas/patchwork.j2 +++ b/docs/api/schemas/patchwork.j2 @@ -2634,19 +2634,27 @@ components: properties: state: title: State - type: string + type: array + items: + type: string readOnly: true target_url: title: Target URL - type: string + type: array + items: + type: string readOnly: true context: title: Context - type: string + type: array + items: + type: string readOnly: true description: title: Description - type: string + type: array + items: + type: string readOnly: true ErrorPatchUpdate: type: object -- cgit v1.2.3