Skip to content

Conversation

@thechandru
Copy link

When using list[str] | None in dataclasses, the JSON schema was losing the items spec. Fixed by delegating to _handle_container when _handle_type encounters a parameterized container.

@thechandru
Copy link
Author

@jph00 - please review. Any feedback would be greatly appreciated.

@jph00
Copy link
Collaborator

jph00 commented Feb 10, 2026

Thanks for the PR!
I see there's an error in the output of get_schema(_raw_list_test). Can you look into that?

Also the results for dict have changed from what the last version did. Are we sure they're correct? Have you tried using Lisette function calling with these changes?

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.

2 participants