apidom
apidom copied to clipboard
apidom-parser-adapter-yaml-1-2: bug in parsing mapping keys longer than `128` characters
Reported to upstream YAML 1.2 grammar in:
- https://github.com/ikatyang/tree-sitter-yaml/issues/59
- https://github.com/tree-sitter-grammars/tree-sitter-yaml/issues/6
Unfortunately there is not much we can do, except to wait for the upstream YAML 1.2 lexical analyzer to fix it or change the lexical analyzer we use.
Workaround
Unfortunately the only current workaround is to switch format from YAML 1.2 to JSON.
There is a new YAML tree-sitter grammar being worked on. This issue will be addressed there. More info in https://github.com/swagger-api/apidom/issues/4033