Skip to content

Conversation

D-Joey-G
Copy link

Description

Addresses issue #8715

The BAML adapter previously disallowed re-use of a BaseModel in a schema, incorrectly classifying all such cases as recursion.

Changes

  • Modified _build_simplified_schema to only track models during active traversal using try/finally to ensure cleanup after traversal

  • Added test for this situation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant