JSON validator requires space before map value
Brought to you by:
kwatch
when validating JSON with a .schema file telling, it is a map
with
{"a":"b"} throws an exception: mapping key is expected.
{"a": "b"} is accepted.
IMHO in
kwalify/parser/yaml.rb:
MAPKEY_PATTERN = /([\w.][-\w.:]*?|".?"|'.?'|:\w+|=|<<)[ \t]:\s+/
should really be
MAPKEY_PATTERN = /([\w.][-\w.:]*?|".?"|'.?'|:\w+|=|<<)[ \t]:\s*/