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

v7.0.0-beta.4: types.ts being generated with errors #848

Open
konhi opened this issue Jan 26, 2024 · 3 comments
Open

v7.0.0-beta.4: types.ts being generated with errors #848

konhi opened this issue Jan 26, 2024 · 3 comments
Labels
area:api Issues related to the `api` CLI, which builds the SDKs bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@konhi
Copy link

konhi commented Jan 26, 2024

  1. create new repo
  2. npx api@next install @bitlabs/v1.0#10v61m2qlqnlux59 with defaults. this doesn't happen with latest stable version
  3. it outputs errors, and types.ts has errors too. https://gist.github.com/konhi/15343b1e31865263997b609761ebeda5
image
@erunion
Copy link
Member

erunion commented Jan 26, 2024

Can you share the OpenAPI definition you generated that from?

@erunion erunion added bug Something isn't working area:api Issues related to the `api` CLI, which builds the SDKs labels Jan 26, 2024
@konhi
Copy link
Author

konhi commented Jan 27, 2024

Sure! openapi.json

When I look at validator, it seems it happens when definition was declared but not used

@erunion erunion added help wanted Extra attention is needed good first issue Good for newcomers labels Jan 27, 2024
@pehrlich-arbor
Copy link

pehrlich-arbor commented Nov 1, 2024

Hm - also getting this when generating the Bayou API (json spec https://gist.github.com/pehrlich-arbor/04f962e9393b1810530854a6cc3e76d5)

(Edit: api version 6.1.2, repro with npx api install "@bayou/v2.0#9g42pc1um229fua0")

Screenshot 2024-11-01 at 5 01 04 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:api Issues related to the `api` CLI, which builds the SDKs bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants