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

format for enums #153

Open
xypron opened this issue Sep 27, 2024 · 1 comment
Open

format for enums #153

xypron opened this issue Sep 27, 2024 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@xypron
Copy link

xypron commented Sep 27, 2024

Other packages like github.com/xeipuuv/gojsonschema support writing

jsonschema="enum=val1,val2"

instead of

jsonschema="enum=val1,enum=val2"

Shouldn't invopop support this more concise format, too?

@samlown
Copy link
Contributor

samlown commented Oct 7, 2024

Personally, I'd like to migrate away from the jsonschema= prefix entirely and take a similar approach to "swaggest/openapi-go" that uses the property names directly, e.g. enum="val1,val2" as opposed to to jsonschema="enum=val1". Alas, little time at the moment.

@samlown samlown added the help wanted Extra attention is needed label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants