You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
format: Either "rfc" (for RFC822), "iso" (for ISO8601), "timestamp", "timestamp_ms" (for a POSIX timestamp) or a date format string. If None, defaults to “iso”.
I was expecting apispec to adapt documentation base on the format but apispec always default to iso format. To change this behavior , I guess the FieldConverterMixin.field2type_and_format would need to be changed but I don't know exactly how.
I don't know if that qualify as a "bug" but it would certainly be nice to have that in the future.
The text was updated successfully, but these errors were encountered:
Yes, in OpenAPI "date-time" implies iso and other formats should use a specific pattern.
Yes but timestamp is a little different than custom date because it should have the type "integer" instead of "string".
Also OpenAPI format is an open field so I think we should also add 'timestamp' or 'timestamp_ms' as format .
Hopefully the correct regex for other formats can be found somewhere.
I couldn't find any regex for RFC822 so I did my own:
Marshmallow support multiple format for DateTime:
I was expecting apispec to adapt documentation base on the format but apispec always default to iso format. To change this behavior , I guess the
FieldConverterMixin.field2type_and_format
would need to be changed but I don't know exactly how.I don't know if that qualify as a "bug" but it would certainly be nice to have that in the future.
The text was updated successfully, but these errors were encountered: