Skip to content
Discussion options

You must be logged in to vote

For now, if you worry about the performance for errors / exception handlers, you could create a custom response with your serialization, it's 4 lines of code: https://fastapi.tiangolo.com/advanced/custom-response/#custom-response-class

And you could also use something other than orjson, or a different format, etc.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@remimd
Comment options

Answer selected by tiangolo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants