desert icon indicating copy to clipboard operation
desert copied to clipboard

Allow deserialization to require a value while not requiring it for instantiation?

Open python-desert opened this issue 5 years ago • 0 comments

It seems at least possible that someone would want to require the value be present when taking it from json but not from Python. Is that what we think this means?:

attr.ib(default=1, metadata={desert._make._DESERT_SENTINEL:{'required': True}})

python-desert avatar Feb 07 '20 04:02 python-desert