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

fix: const generation for not string types (#2333) #2371

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

DanielBretzigheimer
Copy link
Contributor

This should fix the bug in #2333, but I had to disable the functionality to generate const for not string types. The problem is that the cases in line 957 in JSONSchemaInput.ts currently expect the cases to be strings. But for const generation they could be every type which causes an error when the names are generated.

I may look into it when I have time, for now, I have added a FIXME comment. If someone would like to address this issue, feel free to fix this.

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 this pull request may close these issues.

None yet

2 participants