Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for custom_encoder (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/test_jsonable_encoder.py

        encoded_instance = jsonable_encoder(
            instance, custom_encoder={safe_datetime: lambda o: o.strftime("%H:%M:%S")}
        )
        assert encoded_instance["dt_field"] == instance["dt_field"].strftime("%H:%M:%S")
    
        encoded_instance = jsonable_encoder(
            instance, custom_encoder={datetime: lambda o: o.strftime("%H:%M:%S")}
        )
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  2. docs/en/docs/release-notes.md

    * Fix typos in docs. PR [734](https://github.com/tiangolo/fastapi/pull/734) by [@bundabrg](https://github.com/bundabrg).
    * Fix usage of `custom_encoder` in `jsonable_encoder`. PR [#715](https://github.com/tiangolo/fastapi/pull/715) by [@matrixise](https://github.com/matrixise).
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 19:06:15 GMT 2025
    - 586.7K bytes
    - Click Count (0)
Back to Top