Browse Source
The previous implementation doesn't handle subclass instances when pydantic.json.ENCODERS_BY_TYPE is modified after fastapi.encoders import. This diff makes it easier for developers to add custom encoders that also work with subclass instances (and it simplifies the code, as well).pull/5718/head
committed by
Guillaume Gelin
1 changed files with 5 additions and 21 deletions
Loading…
Reference in new issue