Closed MaryGao closed 3 months ago
The type of property userAssignedIdentities for ManagedServiceIdentity should be Record<UserAssignedIdentity | null> but it is Record<UserAssignedIdentity> | null.
userAssignedIdentities
Record<UserAssignedIdentity | null>
Record<UserAssignedIdentity> | null
current typespec: https://github.com/Azure/typespec-azure/blob/fe90e201b7ad8bda7f98e786debfae37c025ee98/packages/typespec-azure-resource-manager/lib/common-types/managed-identity.tsp#L26C4-L27
swagger definition: https://github.com/Azure/azure-rest-api-specs/blob/87a08b955c257c773a3bd42553c718d4b1092955/specification/common-types/resource-management/v5/managedidentity.json#L15
playground
see swagger definition: https://github.com/Azure/azure-rest-api-specs/blob/87a08b955c257c773a3bd42553c718d4b1092955/specification/common-types/resource-management/v5/managedidentity.json#L15
Describe the bug
The type of property
userAssignedIdentities
for ManagedServiceIdentity should beRecord<UserAssignedIdentity | null>
but it isRecord<UserAssignedIdentity> | null
.current typespec: https://github.com/Azure/typespec-azure/blob/fe90e201b7ad8bda7f98e786debfae37c025ee98/packages/typespec-azure-resource-manager/lib/common-types/managed-identity.tsp#L26C4-L27
swagger definition: https://github.com/Azure/azure-rest-api-specs/blob/87a08b955c257c773a3bd42553c718d4b1092955/specification/common-types/resource-management/v5/managedidentity.json#L15
Reproduction
playground
see swagger definition: https://github.com/Azure/azure-rest-api-specs/blob/87a08b955c257c773a3bd42553c718d4b1092955/specification/common-types/resource-management/v5/managedidentity.json#L15
Checklist