feat: field description is added to Title
This commit is contained in:
parent
62e0633e69
commit
57956f1f6e
3 changed files with 13 additions and 0 deletions
|
|
@ -647,6 +647,11 @@ components:
|
||||||
example:
|
example:
|
||||||
- Attack on Titan
|
- Attack on Titan
|
||||||
- AoT
|
- AoT
|
||||||
|
title_desc:
|
||||||
|
description: 'Localized description. Key = language (ISO 639-1), value = description.'
|
||||||
|
type: object
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
studio:
|
studio:
|
||||||
$ref: '#/components/schemas/Studio'
|
$ref: '#/components/schemas/Studio'
|
||||||
tags:
|
tags:
|
||||||
|
|
|
||||||
|
|
@ -113,6 +113,9 @@ type Title struct {
|
||||||
// Tags Array of localized tags
|
// Tags Array of localized tags
|
||||||
Tags Tags `json:"tags"`
|
Tags Tags `json:"tags"`
|
||||||
|
|
||||||
|
// TitleDesc Localized description. Key = language (ISO 639-1), value = description.
|
||||||
|
TitleDesc *map[string]string `json:"title_desc,omitempty"`
|
||||||
|
|
||||||
// TitleNames Localized titles. Key = language (ISO 639-1), value = list of names
|
// TitleNames Localized titles. Key = language (ISO 639-1), value = list of names
|
||||||
TitleNames map[string][]string `json:"title_names"`
|
TitleNames map[string][]string `json:"title_names"`
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,11 @@ properties:
|
||||||
- Титаны
|
- Титаны
|
||||||
ja:
|
ja:
|
||||||
- 進撃の巨人
|
- 進撃の巨人
|
||||||
|
title_desc:
|
||||||
|
type: object
|
||||||
|
description: Localized description. Key = language (ISO 639-1), value = description.
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
studio:
|
studio:
|
||||||
$ref: ./Studio.yaml
|
$ref: ./Studio.yaml
|
||||||
tags:
|
tags:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue