Add includes for /tracks

This commit is contained in:
Deluan 2023-05-23 18:36:38 -04:00 • committed by Deluan
commit 4507895d58
10 changed files with 321 additions and 58 deletions

View file

@ -20,6 +20,10 @@ get:
properties:
data:
$ref: '../schemas/Track.yml'
included:
type: array
items:
$ref: '../schemas/IncludedResource.yml'
'403':
$ref: '../responses/NotAuthorized.yml'
'404':

View file

@ -31,6 +31,10 @@ get:
$ref: '../schemas/PaginationLinks.yml'
meta:
$ref: '../schemas/PaginationMeta.yml'
included:
type: array
items:
$ref: '../schemas/IncludedResource.yml'
'400':
$ref: '../responses/BadRequest.yml'
'403':

View file

@ -6,3 +6,5 @@ properties:
bio:
type: string
description: A short biography of the artist
required:
- name

View file

@ -1,5 +1,6 @@
oneOf:
- $ref: './Track.yml'
- $ref: './Album.yml'
- $ref: './Artist.yml'
discriminator:
propertyName: type