Skip to content

Commit d11c8e2

Browse files
committed
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 <[email protected]>
1 parent d9d8968 commit d11c8e2

File tree

5 files changed

+45
-15
lines changed

5 files changed

+45
-15
lines changed

docs/api/schemas/latest/patchwork.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,9 +1518,15 @@ components:
15181518
minLength: 1
15191519
headers:
15201520
title: Headers
1521-
type: array
1522-
items:
1523-
type: string
1521+
anyOf:
1522+
- type: object
1523+
additionalProperties:
1524+
type: array
1525+
items:
1526+
type: string
1527+
- type: object
1528+
additionalProperties:
1529+
type: string
15241530
readOnly: true
15251531
CoverLetterList:
15261532
type: object

docs/api/schemas/patchwork.j2

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1576,9 +1576,15 @@ components:
15761576
minLength: 1
15771577
headers:
15781578
title: Headers
1579-
type: array
1580-
items:
1581-
type: string
1579+
anyOf:
1580+
- type: object
1581+
additionalProperties:
1582+
type: array
1583+
items:
1584+
type: string
1585+
- type: object
1586+
additionalProperties:
1587+
type: string
15821588
readOnly: true
15831589
CoverLetterList:
15841590
type: object

docs/api/schemas/v1.0/patchwork.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,9 +1334,15 @@ components:
13341334
minLength: 1
13351335
headers:
13361336
title: Headers
1337-
type: array
1338-
items:
1339-
type: string
1337+
anyOf:
1338+
- type: object
1339+
additionalProperties:
1340+
type: array
1341+
items:
1342+
type: string
1343+
- type: object
1344+
additionalProperties:
1345+
type: string
13401346
readOnly: true
13411347
CoverLetterList:
13421348
type: object

docs/api/schemas/v1.1/patchwork.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,9 +1344,15 @@ components:
13441344
minLength: 1
13451345
headers:
13461346
title: Headers
1347-
type: array
1348-
items:
1349-
type: string
1347+
anyOf:
1348+
- type: object
1349+
additionalProperties:
1350+
type: array
1351+
items:
1352+
type: string
1353+
- type: object
1354+
additionalProperties:
1355+
type: string
13501356
readOnly: true
13511357
CoverLetterList:
13521358
type: object

docs/api/schemas/v1.2/patchwork.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,9 +1518,15 @@ components:
15181518
minLength: 1
15191519
headers:
15201520
title: Headers
1521-
type: array
1522-
items:
1523-
type: string
1521+
anyOf:
1522+
- type: object
1523+
additionalProperties:
1524+
type: array
1525+
items:
1526+
type: string
1527+
- type: object
1528+
additionalProperties:
1529+
type: string
15241530
readOnly: true
15251531
CoverLetterList:
15261532
type: object

0 commit comments

Comments
 (0)