HomePhorge

Validate nils in object properties correctly

Description

Validate nils in object properties correctly

Casting a map to a struct introduces new nils
Code changed to only validate nil values when the field is required.
While this is slightly more lenient, since it allows the API consumer
to explicitly supply a nil where one is not allowed, it makes it
simpler to deal with structs.

Details

Provenance
Michael BuhotAuthored on Oct 15 2017, 3:41 AM
Parents
R22:5d8cd7868e5b: Validate nil against nullable schemas
Branches
Unknown
Tags
Unknown

Event Timeline