We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eead9d7 commit 5441801Copy full SHA for 5441801
scripts/generate_types.sh
@@ -33,7 +33,8 @@ uv run datamodel-codegen \
33
--class-name A2A \
34
--use-standard-collections \
35
--use-subclass-enum \
36
- --base-class a2a._base.A2ABaseModel
+ --base-class a2a._base.A2ABaseModel \
37
+ --snake-case-field
38
39
echo "Formatting generated file with ruff..."
40
uv run ruff format "$GENERATED_FILE"
src/a2a/_base.py
@@ -12,4 +12,5 @@ class A2ABaseModel(BaseModel):
12
# SEE: https://docs.pydantic.dev/latest/api/config/#pydantic.config.ConfigDict.populate_by_name
13
validate_by_name=True,
14
validate_by_alias=True,
15
+ serialize_by_alias=True,
16
)
0 commit comments