Replies: 2 comments 1 reply
-
I'd recommend looking into using a visitor to remove the node: https://eemeli.org/yaml/#modifying-nodes |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks. Following that doc, this visitor gives me a compile error on
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I have a yaml like this (note no value for
name
):The result of
parseDocument(...).toJSON()
is this:Is it possible to not insert a
null
when no value is supplied to the property in the yaml? The reason I ask is because I'm converting the YAML to JSON and validating it with a schema and the null gives an unhelpful error message forname
:Ideally I would get a missing required property error instead.
Beta Was this translation helpful? Give feedback.
All reactions