special casing fallback behavior when attribute is set to null will make it more difficult to tool against #56
Labels
help wanted
This issue would benefit from community assistance.
scheduled
The maintainers have flagged this issue as something to be addressed.
In JSON parsers, where you specify a structure of types and the parser tries to fill out those types, typically an unset attribute and an attribute set to null both results in a None value in an optional. In cases where you must tell the difference between an unset value and a null value, you'll end up with a nested option type. This makes it much more challenging to tool around this spec.
It would be much easier if
tag: null
meant the same as the tag not being specified. If you want to unset the values and not allow a fallback, set the value to an empty string or array. For exampletag: []
ortag: ""
would cause an overriding to an empty value.The text was updated successfully, but these errors were encountered: