Skip to content

display_name/intro/description fields in OpenAPI spec typed as LocalizedValue object instead of oneOf[string, map] #1812

Description

@Alexander-Kezik

Name and Version

0.46.1

What steps will reproduce the bug?

  1. Open open_api_core.yaml
  2. Check the display_name, description, intro fields on Application, Model, ToolSet, Interceptor (and their *Data variants)
  3. It's defined as $ref to LocalizedValue: { localeMap, plainValue }
  4. Generate TS SDK from this spec — display_name becomes { localeMap?, plainValue? }

What is the expected behavior?

display_name, description and intro fields should be typed as a plain string or a locale map (e.g. { "en": "text" }), since that's what core actually returns. In OpenAPI this should be oneOf: [string, object], not a ref to LocalizedValue.

What do you see instead?

display_name, description and intro fields is typed as { localeMap, plainValue } object, which doesn't match the real response and produces wrong types in the generated SDK.

Also inconsistent: ExternalService uses plain string for the same kind of field, while other schemas use LocalizedValue.

Additional information

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions