You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
XiaofeiCao opened this issue
Apr 23, 2024
· 3 comments
· Fixed by #28842
Assignees
Labels
bugThis issue requires a change to an existing behavior in the product in order to be resolved.MgmtThis issue points to a problem in the management-plane of the library.TypeSpecAuthored with TypeSpec
The text was updated successfully, but these errors were encountered:
XiaofeiCao
added
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
TypeSpec
Authored with TypeSpec
labels
Apr 23, 2024
@zzhxiaofeng, PR has been linked to this bug. Please take a look. Thanks.
@XiaofeiCao, the duplication happens because the resource operations are decorated with @Autorest.example(...) in the tsp files. Removing the decorator and linking the examples to the operations using the operationId removes the duplication.
bugThis issue requires a change to an existing behavior in the product in order to be resolved.MgmtThis issue points to a problem in the management-plane of the library.TypeSpecAuthored with TypeSpec
API Spec link
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/deviceregistry/DeviceRegistry.Management/examples/2023-11-01-preview/Create_AssetEndpointProfile.json#L2
API Spec version
2023-11-01-preview
Describe the bug
operationId
Create_AssetEndpointProfile
is wrongExpected behavior
Should be
AssetEndpointProfiles_CreateOrReplace
. Similar issues with all example files in examples folder.Actual behavior
Create_AssetEndpointProfile
Reproduction Steps
example files issue. I tried to correct it, though generated swagger files contain duplicates...
https://github.com/Azure/azure-rest-api-specs/pull/28783/files
Environment
No response
The text was updated successfully, but these errors were encountered: