apispec
apispec copied to clipboard
Support of DateTime and Date formats
Adds full support for rendering Date and DateTime Marshmallow fields with each of their format values.
This solve the issue of Date and DateTime with a non-default format being rendered with format: null instead of format: date and format: date-time respectively.
Also, format and pattern should not ever by None, according to openapi spec they must be strings. Probably should be removed from the ret dict when they are None.