The type of properties
in SdkModelType
should be SdkBodyModelPropertyType[]
since we could never get an instance of other types inside the array
#796
Labels
Clear and concise description of the problem
SdkModelPropertyType
is a union of "model property" and "operation parameter", but because the property in a model type (in SDK's perspective) could never be a parameter, therefore the type ofproperties
inSdkModelType
should be narrow down toSdkBodyModelPropertyType
onlytypespec-azure/packages/typespec-client-generator-core/src/interfaces.ts
Line 287 in be1e2c3
Checklist
The text was updated successfully, but these errors were encountered: