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

Enum schemas aren't generated if the enumerator list matches #2484

Open
beku-epitome opened this issue Jan 29, 2024 · 0 comments
Open

Enum schemas aren't generated if the enumerator list matches #2484

beku-epitome opened this issue Jan 29, 2024 · 0 comments

Comments

@beku-epitome
Copy link
Contributor

I have two JSON schema files, where the type names are different, but the enumerators are matching.

{ "title":"firstEnumeration","enum": ["a","b","c"],"type": "string"}
{ "title":"secondEnumeration","enum": ["a","b","c"],"type": "string"}

When I use quicktype to generate source code, I only get output for the secondEnumeration, even though they are two different types - there is also no alias type generated for firstEnumeration, it is simply an unknown symbol. This problem is observed across multiple output languages, so the logic to blame must be in the JSON schema parsing logic.

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

No branches or pull requests

1 participant