-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
Allow numeric keys to be classified as errors #1350
Comments
@tschaible |
thanks @P0lip
|
@P0lip While we're at it. Couldn't we turn it back to raising an error (and leverage that FWIW, OAI/OpenAPI-Specification#2171 has been closed as "not an issue". |
I think the decision made in #955 was the wrong one. It is invalid OpenAPI, and we consistently treat invalid OpenAPI as an error, not a warning. The attempts to change OpenAPI itself (as @nulltoken linked to there OAI/OpenAPI-Specification#2171) were rejected, so we're now doing the wrong thing. If that had gone through, we'd still be doing the wrong thing, but it would be only wrong for a short time. Some tools might not give errors for numeric keys here, but one tool being blasé and ignoring the spec makes problems for anyone who uses that tool, then takes the spec to another tool which does care about the spec. I'd rather we treated this like an error, and if folks don't like it they should be able to turn the rule off. |
User story.
As a user who needs OpenAPI YAML to be valid for other tools, I would like the incorrect usage of numeric keys to be identified as an error.
Is your feature request related to a problem?
In #955 it seems like the misuse of numeric keys in YAML was changed from an error to a warning.
I actually want it as an error, since numeric keys in YAML break other tools in my tool-chain.
Since the violation comes from parser it seems like I can't change the severity. I would like control of this, so I can classify it as an error.
Describe the solution you'd like
Either of the two options below would be great
or
The text was updated successfully, but these errors were encountered: