Skip to content

feat: Union type support in schema generation and interface builder deps#783

Draft
deppp wants to merge 2 commits intomasterfrom
fb-rnd-new-editor
Draft

feat: Union type support in schema generation and interface builder deps#783
deppp wants to merge 2 commits intomasterfrom
fb-rnd-new-editor

Conversation

@deppp
Copy link
Copy Markdown
Contributor

@deppp deppp commented Mar 18, 2026

Summary

  • Handle JSON Schema union types (["string", "null"]Optional[str]) in pydantic_generator.py
  • Default None for optional Pydantic fields so they aren't required during validation
  • Fix response_model type annotation in PromptImprovementSkill
  • Add dependencies: lxml, xmljson, jsf, datamodel-code-generator

Supports the custom interface builder and prompter enhancements in humansignal/label-studio-enterprise#10511.

Test plan

  • Run existing Adala tests
  • Verify schema generation with union/optional types
  • Full testing via LSE PR humansignal/label-studio-enterprise#10511

🤖 Generated with Claude Code

Michael and others added 2 commits March 17, 2026 22:51
…face builder

Changes for the custom interface builder in LSE
(humansignal/label-studio-enterprise#10511):

- Handle JSON Schema union types (["string", "null"] -> Optional[str])
- Default None for optional Pydantic fields so they aren't required
- Fix response_model type annotation in PromptImprovementSkill
- Add dependencies: lxml, xmljson, jsf, datamodel-code-generator

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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