Add descriptions to included fields

This commit is contained in:
Deluan 2023-05-23 19:47:00 -04:00 committed by Deluan
parent 4a8f176f0d
commit 40f7170930
5 changed files with 67 additions and 55 deletions

View file

@ -21,6 +21,7 @@ get:
data: data:
$ref: '../schemas/Album.yml' $ref: '../schemas/Album.yml'
included: included:
description: Included resources, as requested by the `include` query parameter
type: array type: array
items: items:
$ref: '../schemas/IncludedResource.yml' $ref: '../schemas/IncludedResource.yml'

View file

@ -32,6 +32,7 @@ get:
meta: meta:
$ref: '../schemas/PaginationMeta.yml' $ref: '../schemas/PaginationMeta.yml'
included: included:
description: Included resources, as requested by the `include` query parameter
type: array type: array
items: items:
$ref: '../schemas/IncludedResource.yml' $ref: '../schemas/IncludedResource.yml'

View file

@ -21,6 +21,7 @@ get:
data: data:
$ref: '../schemas/Track.yml' $ref: '../schemas/Track.yml'
included: included:
description: Included resources, as requested by the `include` query parameter
type: array type: array
items: items:
$ref: '../schemas/IncludedResource.yml' $ref: '../schemas/IncludedResource.yml'

View file

@ -32,6 +32,7 @@ get:
meta: meta:
$ref: '../schemas/PaginationMeta.yml' $ref: '../schemas/PaginationMeta.yml'
included: included:
description: Included resources, as requested by the `include` query parameter
type: array type: array
items: items:
$ref: '../schemas/IncludedResource.yml' $ref: '../schemas/IncludedResource.yml'

View file

@ -698,6 +698,8 @@ type GetAlbumsResponseObject interface {
type GetAlbums200JSONResponse struct { type GetAlbums200JSONResponse struct {
Data []Album `json:"data"` Data []Album `json:"data"`
// Included Included resources, as requested by the `include` query parameter
Included *[]IncludedResource `json:"included,omitempty"` Included *[]IncludedResource `json:"included,omitempty"`
Links PaginationLinks `json:"links"` Links PaginationLinks `json:"links"`
Meta *PaginationMeta `json:"meta,omitempty"` Meta *PaginationMeta `json:"meta,omitempty"`
@ -750,6 +752,8 @@ type GetAlbumResponseObject interface {
type GetAlbum200JSONResponse struct { type GetAlbum200JSONResponse struct {
Data Album `json:"data"` Data Album `json:"data"`
// Included Included resources, as requested by the `include` query parameter
Included *[]IncludedResource `json:"included,omitempty"` Included *[]IncludedResource `json:"included,omitempty"`
} }
@ -936,6 +940,8 @@ type GetTracksResponseObject interface {
type GetTracks200JSONResponse struct { type GetTracks200JSONResponse struct {
Data []Track `json:"data"` Data []Track `json:"data"`
// Included Included resources, as requested by the `include` query parameter
Included *[]IncludedResource `json:"included,omitempty"` Included *[]IncludedResource `json:"included,omitempty"`
Links PaginationLinks `json:"links"` Links PaginationLinks `json:"links"`
Meta *PaginationMeta `json:"meta,omitempty"` Meta *PaginationMeta `json:"meta,omitempty"`
@ -988,6 +994,8 @@ type GetTrackResponseObject interface {
type GetTrack200JSONResponse struct { type GetTrack200JSONResponse struct {
Data Track `json:"data"` Data Track `json:"data"`
// Included Included resources, as requested by the `include` query parameter
Included *[]IncludedResource `json:"included,omitempty"` Included *[]IncludedResource `json:"included,omitempty"`
} }
@ -1267,57 +1275,57 @@ func (sh *strictHandler) GetTrack(w http.ResponseWriter, r *http.Request, trackI
// Base64 encoded, gzipped, json marshaled Swagger object // Base64 encoded, gzipped, json marshaled Swagger object
var swaggerSpec = []string{ var swaggerSpec = []string{
"H4sIAAAAAAAC/+w73W7bONavQuj7gJnBqHa2nd2LAHuRzrZFBm0aJJntRScLUNKxxSlFqiTlxA0M7Gvs", "H4sIAAAAAAAC/+w73W7bONavQuj7gJnBqHa2nd2LAHuRzrZFBm0aJJntRSeLoaRji1OJVEnKiacwsK+x",
"6+2TLHhI/diibNlN+ofetInI88vD88eTuyiVRSkFCKOj47uopIoWYEDhbzPGDahfpTCUCfySgU4VKw2T", "r7dPsuAhKckWZctu0p+gN20i8vzy8Pzx5EOUirISHLhW0fGHqKKSlqBB4m8zVmiQPwuuKeP4JQOVSlZp",
"IjqOnuM6SZaEiiUplSxBmSVJHQATc2Lg1kzI75rO4Zg4dG/9sr7+ew1xvKC8giiOmMX6vgK1jOJI0AKi", "Jnh0HD3HdZIsCeVLUklRgdRLkloAxudEw62ekF8VncMxsejeumV1/XcPcbygRQ1RHDGD9X0Nch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eI0eZ47cZIx7NpQuSQSKgnKXBc+X3tT/tze5gVox8t3iswLkdACG3X2fNuJ1qHzdX9x9i01+pYa3Uuv",
"dmgfpLb5/XKv+vEukHp5pr+SzKu5Z19SI6R+c/22cjlnM6vuayWaaved8u21tQWXIzhDdg81U1qy6eJx", "xtnXl5AjNRN+33o1nzCTcy7oYSRyXpjWt04/4P87srgr93h4aK/G36L9sjn/ZBlI5hzTX0ku19zch92s",
"tLpe/S8AAP//4eMuGR1IAAA=", "8W/XDyvftFa46r76ovF333vfXhvrsnmMvRr2wWtKKzZdPI5W16v/BQAA//9EQaqoZUkAAA==",
} }
// GetSwagger returns the content of the embedded swagger specification file // GetSwagger returns the content of the embedded swagger specification file