From: Stephen Finucane Date: Thu, 16 Apr 2020 10:48:29 +0000 (+0100) Subject: docs: Resolve issues with 'comments' X-Git-Tag: v3.0.0~58 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d11c8e25b982ebc9697ab725a53585781816bba1;p=thirdparty%2Fpatchwork.git docs: Resolve issues with 'comments' Each header in the 'headers' field can be either a string or a list value. Signed-off-by: Stephen Finucane --- diff --git a/docs/api/schemas/latest/patchwork.yaml b/docs/api/schemas/latest/patchwork.yaml index 794140a3..28c18495 100644 --- a/docs/api/schemas/latest/patchwork.yaml +++ b/docs/api/schemas/latest/patchwork.yaml @@ -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 diff --git a/docs/api/schemas/patchwork.j2 b/docs/api/schemas/patchwork.j2 index 867add94..13cc2782 100644 --- a/docs/api/schemas/patchwork.j2 +++ b/docs/api/schemas/patchwork.j2 @@ -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 diff --git a/docs/api/schemas/v1.0/patchwork.yaml b/docs/api/schemas/v1.0/patchwork.yaml index b697ce9a..92801ec6 100644 --- a/docs/api/schemas/v1.0/patchwork.yaml +++ b/docs/api/schemas/v1.0/patchwork.yaml @@ -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 diff --git a/docs/api/schemas/v1.1/patchwork.yaml b/docs/api/schemas/v1.1/patchwork.yaml index 45790c82..d57b5356 100644 --- a/docs/api/schemas/v1.1/patchwork.yaml +++ b/docs/api/schemas/v1.1/patchwork.yaml @@ -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 diff --git a/docs/api/schemas/v1.2/patchwork.yaml b/docs/api/schemas/v1.2/patchwork.yaml index e02c6123..f2ee2a85 100644 --- a/docs/api/schemas/v1.2/patchwork.yaml +++ b/docs/api/schemas/v1.2/patchwork.yaml @@ -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