Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in type generation due to reserved word interface #1230

Closed
christianvogt opened this issue Aug 29, 2022 · 2 comments · Fixed by PxTools/PxApiSpecs#93
Closed

Error in type generation due to reserved word interface #1230

christianvogt opened this issue Aug 29, 2022 · 2 comments · Fixed by PxTools/PxApiSpecs#93
Assignees

Comments

@christianvogt
Copy link

Describe the bug
Error in type generation due to reserved word interface:

{
  "openapi": "3.0.0",
  "info": {
    "version": "1.0.0"
  },
  "components": {
    "schemas": {
      "interface": {
        "type": "object"
      }
    }
  }
}

Output interface.ts:

export type interface = {
};

Identifier expected. 'interface' is a reserved word in strict mode. Modules are automatically in strict mode.

image

@mb21
Copy link
Contributor

mb21 commented Sep 6, 2022

This may be solved by #1192...

@ferdikoomen
Copy link
Owner

Yes, should be solved now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants