Skip to content

Commit 8a321a8

Browse files
remove http section
1 parent b711248 commit 8a321a8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

docs/core/event_handler/api_gateway.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,8 +559,6 @@ With data validation enabled, we natively support serializing the following data
559559
!!! warning "Important: Pydantic models are serialized using aliases by default"
560560
When `enable_validation=True` is set, **all Pydantic models in responses are automatically serialized using `by_alias=True`**. This differs from Pydantic's default behavior (`by_alias=False`).
561561

562-
This design choice ensures compatibility with HTTP standards where field names may contain characters like hyphens (`-`) that are not valid Python identifiers.
563-
564562
When you return Pydantic models from your handlers, Event Handler will serialize them using field aliases defined in your model configuration:
565563

566564
=== "pydantic_alias_serialization.py"

0 commit comments

Comments
 (0)