go-openapi / strfmt

openapi toolkit common string formats

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

empty DateTime shouldn't be valid

mjvm opened this issue · comments

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.