yaml-spec
yaml-spec copied to clipboard
YAML Specification
Because `ns-directive-parameter` is defined as simply `ns-char+`, it will happily consume comments at the end of the line. E.g, in: ```yaml %FOO bar # baz ``` The `ns-reserved-directive` production will...
Hi there! I just want to drop an idea here (maybe for YAML 1.3?). Actually there are two "directives" available: - `%YAML` to identify the version of YAML - `%TAG`...
Many languages support some form of string interpolation. Adding string interpolation to YAML would enhance anchors/aliases. Below is a contrived example. Obviously the interpolation markers may not work, but this...
The following YAML document is invalid because the content line of the block scalar does not have any indentation: ``` | scalar ``` I believe this is intended, as `c-indentation-indicator`...
The output for example 7.10 in the spec has an extra comma in the output compared to the input. Specifically, in the flow sequence, the scalar `"Up, up and away!"`...
Production 28 has a comment saying that carriage return is x0A. See https://yaml.org/spec/1.2.2/#rule-b-break This needs to be added to 1.2.2 errata page and fixed in 1.2.3.
For use cases like cryptographic signing, reliable diff, Verifiable Credentials: it would be useful to have a defined algorithm for YAML canonicalization/normalization (c14n). I.e. when c14n is enabled: - Given...
## This PR - stubs security considerations - it is for ease the discussion and allowing the team to provide patches directly to the PR.
YAML-LD initiative, [looking forward to](https://github.com/json-ld/yaml-ld/issues/9) express JSON-LD vocabulary in YAML, forces to write something like this: ```yaml "@context": https://example.org/context.json "@type": example:Page ``` The @-keywords have to be quoted because the...
The page at https://yaml.org/type/float.html has something in the regex that really seems to be a mistake. > `[-+]?([0-9][0-9_]*)?\.[0-9.]*([eE][-+][0-9]+)?` (base 10) It matches things like `1....1`. On the other hand, one...