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 {
|
||||
EpisodesAired *int32 `json:"episodes_aired,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 *int64 `json:"id,omitempty"`
|
||||
|
|
@ -50,7 +50,9 @@ type Title struct {
|
|||
ReleaseSeason *ReleaseSeason `json:"release_season,omitempty"`
|
||||
ReleaseYear *int32 `json:"release_year,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 *TitleStatus `json:"title_status,omitempty"`
|
||||
|
|
|
|||
|
|
@ -592,9 +592,19 @@ components:
|
|||
description: Unique title ID (primary key)
|
||||
example: 1
|
||||
title_names:
|
||||
type: object
|
||||
description: "Localized titles. Key = language (ISO 639-1), value = list of names"
|
||||
additionalProperties:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
example: "Attack on Titan"
|
||||
minItems: 1
|
||||
example: ["Attack on Titan", "AoT"]
|
||||
example:
|
||||
en: ["Attack on Titan", "AoT"]
|
||||
ru: ["Атака титанов", "Титаны"]
|
||||
ja: ["進撃の巨人"]
|
||||
studio_id:
|
||||
type: integer
|
||||
format: int64
|
||||
|
|
@ -621,8 +631,8 @@ components:
|
|||
type: integer
|
||||
format: int32
|
||||
episodes_len:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
additionalProperties:
|
||||
type: number
|
||||
format: double
|
||||
additionalProperties: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue