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 \
34
34
--class-name A2A \
35
35
--use-standard-collections \
36
36
--use-subclass-enum \
37
- --snake-case-field
38
37
39
38
echo " Codegen finished successfully."
Original file line number Diff line number Diff line change 1
1
"""A2A Pydantic Base Model with shared configuration."""
2
2
3
3
from pydantic import BaseModel , ConfigDict
4
- from pydantic .alias_generators import to_camel
4
+ from pydantic .alias_generators import to_snake
5
5
6
6
7
7
class A2ABaseModel (BaseModel ):
8
8
"""Base model for all A2A types with shared configuration."""
9
9
10
10
model_config = ConfigDict (
11
- alias_generator = to_camel ,
11
+ alias_generator = to_snake ,
12
12
populate_by_name = True ,
13
+ arbitrary_types_allowed = True ,
13
14
)
You can’t perform that action at this time.
0 commit comments