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

For the Explicit Block Mapping,why yamlbeans implements the key length < 128 ? #84

Open
Czytx opened this issue Sep 13, 2017 · 1 comment

Comments

@Czytx
Copy link
Contributor

Czytx commented Sep 13, 2017

In the YAML Version 1.2 specification (http://yaml.org/spec/1.2/spec.html#id2798057),for the Explicit Block Mapping,having the following specifications:
If the “?” indicator is omitted, parsing needs to see past the implicit key, in the same way as in the single key: value pair flow mapping. Hence, such keys are subject to the same restrictions; they are limited to a single line and must not span more than 1024 Unicode characters.
why yamlbeans implements the key length < 128 ?
return length < 128 && (event.type == ALIAS || event.type == SCALAR && !analysis.empty && !analysis.multiline || checkEmptySequence() || checkEmptyMapping());

@NathanSweet
Copy link
Member

NathanSweet commented Sep 19, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants