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

foo/{bar}: blubb is not parsed as yaml #24

Closed
ufobat opened this issue Nov 14, 2018 · 4 comments
Closed

foo/{bar}: blubb is not parsed as yaml #24

ufobat opened this issue Nov 14, 2018 · 4 comments

Comments

@ufobat
Copy link
Contributor

ufobat commented Nov 14, 2018

while parsing openapi specs I realized that YAMLish does not parse foo/{bar}: blubb.

@Leont
Copy link
Owner

Leont commented Nov 14, 2018

The specification states that «when used as implicit keys, plain scalars must not contain the “[”, “]”, “{”, “}” and “,” characters» (7.3.3), so I think this is not a bug in my code but in those files. They probably should use quoting.

@perlpunk
Copy link

It seems that the sentence:

In addition, inside flow collections, or when used as implicit keys, plain scalars must not contain the “[”, “]”, “{”, “}” and “,” characters

contradicts the productions:
http://yaml.org/spec/1.2/spec.html#ns-plain-safe-out
I think this is block-key context, and there those characters aren't forbidden.

@Leont
Copy link
Owner

Leont commented Nov 15, 2018

Just pushed a fix :-)

@ufobat
Copy link
Contributor Author

ufobat commented Nov 15, 2018

my schema.yml does now parse without an error! thank you!

@ufobat ufobat closed this as completed Nov 15, 2018
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

No branches or pull requests

3 participants