Skip to content

Commit 11dabde

Browse files
committed
Add type generation script
1 parent ebb20f3 commit 11dabde

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

development.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## Type generation from spec
2+
3+
<!-- TODO replace spec.json with the public url so we always get the latest version-->
4+
5+
```bash
6+
uv run datamodel-codegen --input ./spec.json --input-file-type jsonschema --output ./src/a2a/types.py --target-python-version 3.10 --output-model-type pydantic_v2.BaseModel --disable-timestamp --use-schema-description --use-union-operator --use-field-description --use-default --use-default-kwarg --use-one-literal-as-default --class-name A2A --use-standard-collections
7+
```

0 commit comments

Comments
 (0)