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>
title: Relations
type: array
items:
- type: string
+ $ref: '#/components/schemas/PatchEmbedded'
PatchDetail:
allOf:
- $ref: '#/components/schemas/PatchList'
title: Relations
type: array
items:
- type: string
+ type: integer
Person:
type: object
properties:
title: Relations
type: array
items:
- type: string
+ $ref: '#/components/schemas/PatchEmbedded'
{% endif %}
PatchDetail:
allOf:
title: Relations
type: array
items:
- type: string
+ type: integer
{% endif %}
Person:
type: object
title: Relations
type: array
items:
- type: string
+ $ref: '#/components/schemas/PatchEmbedded'
PatchDetail:
allOf:
- $ref: '#/components/schemas/PatchList'
title: Relations
type: array
items:
- type: string
+ type: integer
Person:
type: object
properties: