I'm not sure if the UDataJsonEncoder is used… Because in my first tests based on Python 3.9, a timestamp was returned. With Python 3.11 (maybe following some dependencies removal too…), Flask RestX is not using ujson anymore but simple json and the serialization changed…
If ujson is installed, Flask RestX is using it (as in the CI here) so the cls config doesn't exists https://github.com/ultrajson/ultrajson/issues/124 but on a fresh install, ujson is not installed (as in demo.data.gouv.fr) so it's not working…
Fix https://errors.data.gouv.fr/organizations/sentry/issues/138221
I'm not sure if the
UDataJsonEncoder
is used… Because in my first tests based on Python 3.9, a timestamp was returned. With Python 3.11 (maybe following some dependencies removal too…), Flask RestX is not usingujson
anymore but simplejson
and the serialization changed…If
ujson
is installed, Flask RestX is using it (as in the CI here) so thecls
config doesn't exists https://github.com/ultrajson/ultrajson/issues/124 but on a fresh install,ujson
is not installed (as in demo.data.gouv.fr) so it's not working…