We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
swagger: '2.0' info: description: Weird validation bug version: "1.0.0" title: Validation Bug license: name: Apache 2.0 url: http://www.apache.org/licenses/LICENSE-2.0.html paths: /item/{dbId}: get: operationId: itemUse parameters: - in: path name: dbId required: true description: 'bug!' type: string responses: '200': description: sucessful response
It should complain that either the YAML structure is invalid, or that the parameter is missing a type definition.
type
Notice that this only happens if the description is quoted, for obvious reasons, and it won't happen with fields other than string type.
It ignores any validation issue and says it's all 🍑y.
No idea, can't even fathom the cause.
It doesn't work, @shockey.
The text was updated successfully, but these errors were encountered:
Looks like js-yaml is actually letting this be parsed correctly, even though the YAML is invalid:
js-yaml
Sorry, something went wrong.
Closing in favor of nodeca/js-yaml#418.
MOAR issues
shockey
No branches or pull requests
Demonstration API definition
Expected Behavior
It should complain that either the YAML structure is invalid, or that the parameter is missing a
type
definition.Notice that this only happens if the description is quoted, for obvious reasons, and it won't happen with fields other than string type.
Current Behavior
It ignores any validation issue and says it's all 🍑y.
Possible Solution
No idea, can't even fathom the cause.
Context
It doesn't work, @shockey.
The text was updated successfully, but these errors were encountered: