-
-
Notifications
You must be signed in to change notification settings - Fork 261
Codegen: Support union types as scala 3 union types #1926
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requestserverIssue related to caliban serverIssue related to caliban servertoolsIssue related to Caliban tools like code generation or schema comparisonIssue related to Caliban tools like code generation or schema comparison
Description
Activity
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestserverIssue related to caliban serverIssue related to caliban servertoolsIssue related to Caliban tools like code generation or schema comparisonIssue related to Caliban tools like code generation or schema comparison
With namespacing gone after #1925, we're quite close to being able to output union types as union types.
The remaining issue is basically this:
That's true. But, and I'm on very thin ice here, I think we can write a macro which pattern matches on the union type, picks out all the members and
summonAllsSchemas for them.Then we need to generate some code like this:
Originally posted by @oyvindberg in #1925 (comment)