Skip to content

Commit c3d73a0

Browse files
committed
docs: Resolve issues with 'relations'
Two issues here: - 'PATCH /patches/{id}' and 'PUT /patches/{id}' expect a list of integers on the 'related' field - not strings - 'GET /patches' and 'GET /patches/{id}' return a list of embedded patch objects on the 'related' field - not strings Signed-off-by: Stephen Finucane <[email protected]>
1 parent 6bd33cb commit c3d73a0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/api/schemas/latest/patchwork.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1887,7 +1887,7 @@ components:
18871887
title: Relations
18881888
type: array
18891889
items:
1890-
type: string
1890+
$ref: '#/components/schemas/PatchEmbedded'
18911891
PatchDetail:
18921892
allOf:
18931893
- $ref: '#/components/schemas/PatchList'
@@ -1948,7 +1948,7 @@ components:
19481948
title: Relations
19491949
type: array
19501950
items:
1951-
type: string
1951+
type: integer
19521952
Person:
19531953
type: object
19541954
properties:

docs/api/schemas/patchwork.j2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1964,7 +1964,7 @@ components:
19641964
title: Relations
19651965
type: array
19661966
items:
1967-
type: string
1967+
$ref: '#/components/schemas/PatchEmbedded'
19681968
{% endif %}
19691969
PatchDetail:
19701970
allOf:
@@ -2027,7 +2027,7 @@ components:
20272027
title: Relations
20282028
type: array
20292029
items:
2030-
type: string
2030+
type: integer
20312031
{% endif %}
20322032
Person:
20332033
type: object

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1887,7 +1887,7 @@ components:
18871887
title: Relations
18881888
type: array
18891889
items:
1890-
type: string
1890+
$ref: '#/components/schemas/PatchEmbedded'
18911891
PatchDetail:
18921892
allOf:
18931893
- $ref: '#/components/schemas/PatchList'
@@ -1948,7 +1948,7 @@ components:
19481948
title: Relations
19491949
type: array
19501950
items:
1951-
type: string
1951+
type: integer
19521952
Person:
19531953
type: object
19541954
properties:

0 commit comments

Comments
 (0)