-
Notifications
You must be signed in to change notification settings - Fork 80
Missing interface in non-modular code generation #3820
Copy link
Copy link
Closed
Labels
RLCcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Metadata
Metadata
Labels
RLCcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Hi Team,
I have below model definitions in Typespec and I found the the interfaces
CatDefandDefaultPetswill be missed in the generated codes. However, switching to modular mode (settingis-modular-librarytotrue), the interfaces are generated.The problem seems relates to
cat?: DefaultPets.catListin modelPetSettings. After changing it to below, the interfaceCatDefcan be generated.Here is my emitter setting in
tspconfig.yaml: