#/components/schemas/import generates export interface import { ... }, which is not valid TS.
#/components/schemas/package generates export interface package { ... }, which is not valid TS in strict mode.
Unclear what should actually happen when names clash with TS keywords. Maybe there should be option for name mapping, or auto conflict resolution by suffixes.
Repro:
taxios-generate https://github.com/github/rest-api-description/raw/main/descriptions/api.github.com/api.github.com.json -o GitHubApi.ts -e GitHubApi
Happens because of:
#/components/schemas/import
generatesexport interface import { ... }
, which is not valid TS.#/components/schemas/package
generatesexport interface package { ... }
, which is not valid TS in strict mode.Unclear what should actually happen when names clash with TS keywords. Maybe there should be option for name mapping, or auto conflict resolution by suffixes.