diff options
author | Stephen Finucane <stephen@that.guru> | 2020-04-16 14:03:54 +0100 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2020-04-18 11:57:28 +0100 |
commit | c3d73a00536ff92e65639b912eaeddd462b7cbc3 (patch) | |
tree | 6c4c1b32aec34d7412639426909ca737d4cf400a /docs/api/schemas/patchwork.j2 | |
parent | 6bd33cbd72eacf630e603d1e5b5ce266452fc2cb (diff) | |
download | patchwork-c3d73a00536ff92e65639b912eaeddd462b7cbc3.tar patchwork-c3d73a00536ff92e65639b912eaeddd462b7cbc3.tar.gz |
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 <stephen@that.guru>
Diffstat (limited to 'docs/api/schemas/patchwork.j2')
-rw-r--r-- | docs/api/schemas/patchwork.j2 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/api/schemas/patchwork.j2 b/docs/api/schemas/patchwork.j2 index e587cd7..1ec3848 100644 --- a/docs/api/schemas/patchwork.j2 +++ b/docs/api/schemas/patchwork.j2 @@ -1964,7 +1964,7 @@ components: title: Relations type: array items: - type: string + $ref: '#/components/schemas/PatchEmbedded' {% endif %} PatchDetail: allOf: @@ -2027,7 +2027,7 @@ components: title: Relations type: array items: - type: string + type: integer {% endif %} Person: type: object |