Closed mjvm closed 5 years ago
The defaultFormats.MapStructureHookFunc converts an empty datetime string to epoch time which shouldn't be allowed and tricks go-swagger to validate an empty string as a valid datetime.
defaultFormats.MapStructureHookFunc
datetime
The
defaultFormats.MapStructureHookFunc
converts an emptydatetime
string to epoch time which shouldn't be allowed and tricks go-swagger to validate an empty string as a validdatetime
.