We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b6e1a3 commit a77a40bCopy full SHA for a77a40b
2 files changed
scripts/generate_types.sh
100644
100755
@@ -34,6 +34,5 @@ uv run datamodel-codegen \
34
--class-name A2A \
35
--use-standard-collections \
36
--use-subclass-enum \
37
- --snake-case-field
38
39
echo "Codegen finished successfully."
src/a2a/pydantic_base.py
@@ -1,13 +1,14 @@
1
"""A2A Pydantic Base Model with shared configuration."""
2
3
from pydantic import BaseModel, ConfigDict
4
-from pydantic.alias_generators import to_camel
+from pydantic.alias_generators import to_snake
5
6
7
class A2ABaseModel(BaseModel):
8
"""Base model for all A2A types with shared configuration."""
9
10
model_config = ConfigDict(
11
- alias_generator=to_camel,
+ alias_generator=to_snake,
12
populate_by_name=True,
13
+ arbitrary_types_allowed=True,
14
)
0 commit comments