dart-lang / yaml

A Dart YAML parser.
https://pub.dev/packages/yaml
MIT License
169 stars 58 forks source link

While parsing yaml it generates invalid tag for mapping #143

Open ghost opened 1 year ago

ghost commented 1 year ago

Content of data.yaml file

name: !!set
  ? Mike
  ? Tyson
  ? Broke Lesner

data.yaml file storing set data and its valid I have tested it on https://www.yamllint.com/ but it generates error during parsing

File("data.yaml")
      .readAsString()
      .then(loadYamlDocuments)
      .then(print);

Error that's generated:

Unhandled exception:

Error : Invalid tag for mapping.
   ╷
26 │   name: !!set
   │ ┌───────^
27 │ │   ? Mike
   │ └──^