You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3fdbfd0
Browse filesBrowse the repository at this point in the historyBrowse files
<!-- ELLIPSIS_HIDDEN -->
> [!IMPORTANT]
> Adds support for Pydantic v1 by introducing a new generator output
type and updating templates and logic to handle both Pydantic versions.
>
> - **Behavior**:
> - Adds support for Pydantic v1 by introducing
`GeneratorOutputType::PythonPydanticV1`.
> - Updates `generate()` in `python/mod.rs` to accept `legacy_pydantic`
flag.
> - Modifies `parse_py_type()` in `parse_py_type.rs` to check Pydantic
version and adjust field extraction logic.
> - **Templates**:
> - Updates `partial_types.py.j2` and `types.py.j2` to conditionally use
`ConfigDict` or `Config` based on Pydantic version.
> - Adjusts class definitions to use `GenericModel` for Pydantic v1.
> - **Misc**:
> - Changes `client_type` from `Option<GeneratorOutputType>` to
`GeneratorOutputType` in `GeneratorArgs`.
> - Updates `generators.baml` to include a new generator for Pydantic
v1.
> - Adds integration tests for Pydantic v1 in
`python-v1/tests/test_typebuilder.py`.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup>
for ec7cd42. You can
[customize](https://app.ellipsis.dev/BoundaryML/settings/summaries) this
summary. It will automatically update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->
0 commit comments