Skip to content

Missing interface in RLC code generation#3839

Draft
v-jiaodi wants to merge 1 commit intoAzure:mainfrom
v-jiaodi:test0311
Draft

Missing interface in RLC code generation#3839
v-jiaodi wants to merge 1 commit intoAzure:mainfrom
v-jiaodi:test0311

Conversation

@v-jiaodi
Copy link
Member

related issue: #3820


export interface PetSettingsOutput {
petList?: { cat?: Array<CatDefOutput> };
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typespec:

model DefaultPets {
    catList?: CatDef[] = #[#{ catType: "American Shorthair" }];
}

model PetSettings {
    petList?: {
        cat?: DefaultPets.catList;
    };
}

model CatDef {
    catType: string;
}

interface Global {
    getPetSettings(): PetSettings;
}

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