Broken codegen for nested fragments with enum #2989
Labels
bug
Generally incorrect behavior
codegen
Issues related to or arising from code generation
needs investigation
planned-next
Slated to be included in the next release
Milestone
Summary
When nesting fragments and enums, the
"__fulfilled"
set is missing some cases and.asSomething()
operators fail.Version
1.1.3
Steps to reproduce the behavior
Here is a simplified schema needed to reproduce:
Here is the output of the codegen with:
Then when I try to use the generated initializer:
It prints
asTextMessageContent is broken
.This is because the definition of
asTextMessageContent
expects someMessageContentFragment.AsTextMessageContent
type. But such type is not listed in the__fulfilled
set.Logs
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: