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

[sc-36080] Better error on non-string enum #30

Closed
wants to merge 1 commit into from

Conversation

ysangkok
Copy link
Contributor

@ysangkok ysangkok commented Apr 9, 2024

When YAML specs contain e.g.

enum:
- DK
- FI
- NO
- SE
type: string

the NO will be interpreted as a boolean. To make it easier to identify the spot
in the schema, such that it can be quoted, this PR adds the schema/param name
in the error message.

The same issue can occur with the other boolean aliases too.

@ysangkok ysangkok closed this Apr 9, 2024
@ysangkok ysangkok deleted the sc-36080/non-string-enum-err branch April 9, 2024 20:44
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.

1 participant