Skip to content

Can not generate GitHub spec #37

@simplesmiler

Description

@simplesmiler

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 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions