File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,5 @@ uv run datamodel-codegen \
3434 --class-name A2A \
3535 --use-standard-collections \
3636 --use-subclass-enum \
37- --snake-case-field
3837
3938echo " Codegen finished successfully."
Original file line number Diff line number Diff line change 11"""A2A Pydantic Base Model with shared configuration."""
22
33from pydantic import BaseModel , ConfigDict
4- from pydantic .alias_generators import to_camel
4+ from pydantic .alias_generators import to_snake
55
66
77class A2ABaseModel (BaseModel ):
88 """Base model for all A2A types with shared configuration."""
99
1010 model_config = ConfigDict (
11- alias_generator = to_camel ,
11+ alias_generator = to_snake ,
1212 populate_by_name = True ,
13+ arbitrary_types_allowed = True ,
1314 )
You can’t perform that action at this time.
0 commit comments