yaml / yaml-spec

YAML Specification
http://yaml.org/spec/
348 stars 53 forks source link

JSON Schema problem for int #291

Closed ingydotnet closed 2 years ago

ingydotnet commented 2 years ago

The JSON schema defines int as 0 | -? [1-9] [0-9]*, but it shows this in Example 10.8 Integers: [ 0, -0, 3, -19 ] -0 doesn't match the pattern.

Seems to be valid JSON, so a the pattern is wrong.

ingydotnet commented 2 years ago

I was wrong. The tag resolution for int is in a confusing place. Looks like it's under floating point section.