If the `swagger_info` attribute contains a datetime object in an example definition, the default JSON serializer will fail for datetime types. ex) ``` TypeError: datetime.datetime(2021, 11, 14, 1, 34, 26, tzinfo=datetime.timezone(datetime.timedelta(0, 720))) is not JSON serializable ``` https://swagger.io/docs/specification/data-models/data-types/#string https://github.com/cr0hn/aiohttp-swagger/blob/ea321152805878abb23040fa5c7186b89d872b38/aiohttp_swagger/__init__.py#L75 Proposing a PR to either: 1. allow the caller to pass in a string, a pre-serialized spec; 2. allow the caller to specify a user-defined serializer function; or 3. something else.
If the
swagger_infoattribute contains a datetime object in an example definition, the default JSON serializer will fail for datetime types.ex)
https://swagger.io/docs/specification/data-models/data-types/#string
aiohttp-swagger/aiohttp_swagger/__init__.py
Line 75 in ea32115
Proposing a PR to either: