fix!: some types were changed
This commit is contained in:
parent
d04248ab7a
commit
ae01eec0fd
2 changed files with 21 additions and 9 deletions
|
|
@ -38,7 +38,7 @@ type ReleaseSeason string
|
||||||
type Title struct {
|
type Title struct {
|
||||||
EpisodesAired *int32 `json:"episodes_aired,omitempty"`
|
EpisodesAired *int32 `json:"episodes_aired,omitempty"`
|
||||||
EpisodesAll *int32 `json:"episodes_all,omitempty"`
|
EpisodesAll *int32 `json:"episodes_all,omitempty"`
|
||||||
EpisodesLen *[]float64 `json:"episodes_len,omitempty"`
|
EpisodesLen *map[string]float64 `json:"episodes_len,omitempty"`
|
||||||
|
|
||||||
// Id Unique title ID (primary key)
|
// Id Unique title ID (primary key)
|
||||||
Id *int64 `json:"id,omitempty"`
|
Id *int64 `json:"id,omitempty"`
|
||||||
|
|
@ -50,7 +50,9 @@ type Title struct {
|
||||||
ReleaseSeason *ReleaseSeason `json:"release_season,omitempty"`
|
ReleaseSeason *ReleaseSeason `json:"release_season,omitempty"`
|
||||||
ReleaseYear *int32 `json:"release_year,omitempty"`
|
ReleaseYear *int32 `json:"release_year,omitempty"`
|
||||||
StudioId *int64 `json:"studio_id,omitempty"`
|
StudioId *int64 `json:"studio_id,omitempty"`
|
||||||
TitleNames *[]string `json:"title_names,omitempty"`
|
|
||||||
|
// TitleNames Localized titles. Key = language (ISO 639-1), value = list of names
|
||||||
|
TitleNames *map[string][]string `json:"title_names,omitempty"`
|
||||||
|
|
||||||
// TitleStatus Title status
|
// TitleStatus Title status
|
||||||
TitleStatus *TitleStatus `json:"title_status,omitempty"`
|
TitleStatus *TitleStatus `json:"title_status,omitempty"`
|
||||||
|
|
|
||||||
|
|
@ -592,9 +592,19 @@ components:
|
||||||
description: Unique title ID (primary key)
|
description: Unique title ID (primary key)
|
||||||
example: 1
|
example: 1
|
||||||
title_names:
|
title_names:
|
||||||
|
type: object
|
||||||
|
description: "Localized titles. Key = language (ISO 639-1), value = list of names"
|
||||||
|
additionalProperties:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
|
example: "Attack on Titan"
|
||||||
|
minItems: 1
|
||||||
|
example: ["Attack on Titan", "AoT"]
|
||||||
|
example:
|
||||||
|
en: ["Attack on Titan", "AoT"]
|
||||||
|
ru: ["Атака титанов", "Титаны"]
|
||||||
|
ja: ["進撃の巨人"]
|
||||||
studio_id:
|
studio_id:
|
||||||
type: integer
|
type: integer
|
||||||
format: int64
|
format: int64
|
||||||
|
|
@ -621,8 +631,8 @@ components:
|
||||||
type: integer
|
type: integer
|
||||||
format: int32
|
format: int32
|
||||||
episodes_len:
|
episodes_len:
|
||||||
type: array
|
type: object
|
||||||
items:
|
additionalProperties:
|
||||||
type: number
|
type: number
|
||||||
format: double
|
format: double
|
||||||
additionalProperties: true
|
additionalProperties: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue