Describe the bug
The target tsp is from MongoCluster: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/mongocluster/DocumentDB.MongoCluster.Management/main.tsp#L23
When we try to access the properties from metadata of @typespec/http, we cannot find the property groupId added in v4, while this mongoCluster is using commonTypes.v5.
The lost property isgroupId here:
|
@added(Versions.v4) |
|
groupIds?: string[]; |
Reproduction
Our emitter is typespec-aaz here: https://github.com/Azure/aaz-dev-tools/tree/dev/src/typespec-aaz
Please clone the emitter above, link it to local npm env and then provide the tspconfig.yaml as following:

And then, run tsp compile ${your_workspaceFolder}/specification/mongocluster/DocumentDB.MongoCluster.Management/main.tsp -- config yourconfig.yaml and check the output file ./tsp-output/@azure-tools/typespec-aaz/resources_operations.json .
we can check properties of privateEndpointConnections and you'll find privateEndpoint, privateLinkServiceConnectionState and other stuff, except groupIds.
Emitter code line for parsing properties of common types PrivateEndpointConnectionProperties is here: https://github.com/Azure/aaz-dev-tools/blob/dev/src/typespec-aaz/src/convertor.ts#L655. We use metadata from @typespec/http and check all its properties for our aaz model generation.
Checklist
Describe the bug
The target tsp is from MongoCluster: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/mongocluster/DocumentDB.MongoCluster.Management/main.tsp#L23
When we try to access the properties from metadata of @typespec/http, we cannot find the property
groupIdadded in v4, while this mongoCluster is using commonTypes.v5.The lost property is
groupIdhere:typespec-azure/packages/typespec-azure-resource-manager/lib/common-types/private-links.tsp
Lines 61 to 62 in 79f047c
Reproduction
Our emitter is
typespec-aazhere: https://github.com/Azure/aaz-dev-tools/tree/dev/src/typespec-aazPlease clone the emitter above, link it to local npm env and then provide the tspconfig.yaml as following:
And then, run
tsp compile ${your_workspaceFolder}/specification/mongocluster/DocumentDB.MongoCluster.Management/main.tsp -- config yourconfig.yamland check the output file./tsp-output/@azure-tools/typespec-aaz/resources_operations.json.we can check
propertiesofprivateEndpointConnectionsand you'll findprivateEndpoint,privateLinkServiceConnectionStateand other stuff, exceptgroupIds.Emitter code line for parsing properties of common types
PrivateEndpointConnectionPropertiesis here: https://github.com/Azure/aaz-dev-tools/blob/dev/src/typespec-aaz/src/convertor.ts#L655. We use metadata from@typespec/httpand check all its properties for our aaz model generation.Checklist