-
-
Notifications
You must be signed in to change notification settings - Fork 389
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 with negative numbers in enums #1659
Labels
Comments
fitztrev
added
bug
Something isn't working
openapi-ts
Relevant to the openapi-typescript library
labels
May 13, 2024
This change fixes it for me: main...fitztrev:openapi-typescript:negative-enums But I'm not familiar with the codebase so probably not in a PR-ready state. I duplicated some code from this section to get it working: openapi-typescript/packages/openapi-typescript/src/lib/ts.ts Lines 238 to 244 in 8f2d62f
|
Fixed by #1662 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Description
If an enum has a negative number, getting this error. Here is an example of a spec with one of the values
openapi-typescript
21.7.3
ubuntu 22.04
Reproduction
git clone https://github.com/lichess-org/api.git cd api/doc npm i openapi-typescript@next npx openapi-typescript specs/lichess-api.yaml -o lichess.d.ts
Checklist
npx @redocly/cli@latest lint
)The text was updated successfully, but these errors were encountered: