go-openapi / strfmt

openapi toolkit common string formats
Apache License 2.0
102 stars 62 forks source link

empty DateTime shouldn't be valid #46

Closed mjvm closed 5 years ago

mjvm commented 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.