We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
foo:
foo: ~
I'd like to deserialize foo: as an empty mapping/sequence and treat foo: ~/foo: null as an error.
foo: null
Unfortunately this isn't currently possible with yaml-rust2 because it emits a non-existing ~ Scalar event:
~
% cargo run --bin dump_events <(echo 'foo:') Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.03s Running `target/debug/dump_events /proc/self/fd/11` ↳ StreamStart ↳ DocumentStart ↳ MappingStart(0, None) ↳ Scalar("foo", Plain, 0, None) ↳ Scalar("~", Plain, 0, None) ↳ MappingEnd ↳ DocumentEnd ↳ StreamEnd
The text was updated successfully, but these errors were encountered:
fix: emit empty scalars as "" instead of "~"
93223f9
Fixes Ethiraric#36.
b02bb60
7641a10
Successfully merging a pull request may close this issue.
I'd like to deserialize
foo:
as an empty mapping/sequence and treatfoo: ~
/foo: null
as an error.Unfortunately this isn't currently possible with yaml-rust2 because it emits a non-existing
~
Scalar event:The text was updated successfully, but these errors were encountered: