EsotericSoftware / EsotericSoftware/yamlbeans

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

Open
#84 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
568
Forks
146
PR merge metrics
No merged PRs in 30d

Description

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());

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.