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

Empty types file when tries convert openapi 3.1 schema #633

Open
woren951 opened this issue Sep 12, 2024 · 2 comments
Open

Empty types file when tries convert openapi 3.1 schema #633

woren951 opened this issue Sep 12, 2024 · 2 comments

Comments

@woren951
Copy link

When i tried convert openapi schema 3.0 or 3.1 what i generate by spotlight, i got empty type like:

export interface Sandbox {
  [k: string]: unknown;
}

Schema example: sandbox.json.

@woren951 woren951 changed the title Empty types file when tries convert openapi 3.1 document Empty types file when tries convert openapi 3.1 schema Sep 12, 2024
@marekbrze
Copy link

same here

@bcherny
Copy link
Owner

bcherny commented Sep 28, 2024

That schema does not seem to be a valid JSONSchema. It's using a number of custom keys (paths, parameters, responses, and so on) without nesting them in properties.

What tool did you use to generate that JSONSchema?

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

No branches or pull requests

3 participants