apispec icon indicating copy to clipboard operation
apispec copied to clipboard

Support of DateTime and Date formats

Open expobrain opened this issue 1 year ago • 1 comments

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.

expobrain avatar Sep 02 '24 21:09 expobrain

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.

bhperry avatar Sep 26 '24 15:09 bhperry