build(tgbot-gen): fixing a generator error with a tag

The generator makes an error when generating tags with a link to the tag. At the moment, this is fixed by direct insertion. This is not the best solution. If a better option is found, we will fix it.
This commit is contained in:
Kirill 2025-12-05 23:27:02 +03:00
parent 20cf8b1fc2
commit a22c96e7a0

View file

@ -550,20 +550,13 @@ components:
required:
- id
- name
Tag:
description: 'A localized tag: keys are language codes (ISO 639-1), values are tag names'
type: object
example:
en: Shojo
ru: Сёдзё
ja: 少女
additionalProperties:
type: string
Tags:
description: Array of localized tags
type: array
items:
$ref: '#/components/schemas/Tag'
type: object
additionalProperties:
type: string
example:
- en: Shojo
ru: Сёдзё