-
-
Notifications
You must be signed in to change notification settings - Fork 234
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
fails to parse yaml values with double quote "
inside
#2631
Comments
is the quote intended to be part of the URL string value or part of the yaml syntax? |
Pyyaml recognizes it as part of URL string value |
Thanks @pomali do you know if (and which) part of the YAML specification non-leading quotes may be part of? |
I'm not even sure if it's part of specification, but seems reasonable that linter should be able to read such malformed yaml, or throw some better error. My guess would be that it's interpreted as Flow Plain Style so double-quote |
Describe the bug
when linting yaml file, value containing double quote
"
does not get recognized as stringTo Reproduce
a.yaml
and
.spectral.yaml
spectral lint a.yaml
this is caused by
"
in example. (same arror can happen with oas3-valid-media-example)Expected behavior
other yaml libraries (eg. pyyaml) recognize not-leading double quote and treat the value like a string, so it should not fail the validation (since format: uri gets downgraded to type: string, which should match, and if format: uri is recognized it should be valid anyway)
The text was updated successfully, but these errors were encountered: