Closed catalinaperalta closed 1 week ago
cc @lirenhe @chunyu3
hello @catalinaperalta The error show that there is a type which is not supported. Would you please provide the spec used for us to investigate? thanks
The root cause is that the ReturnType
of LRO operation is null but the ResultPath
is not null. @archerzz would you please help on this? thanks
The root cause is the @pollingOperation
: https://github.com/Azure/azure-rest-api-specs/blob/934f8b595b6aba70096c6fd19089c3986b344c0c/specification/contosowidgetmanager/Contoso.WidgetManager/main.tsp#L53C29-L53C53
@pollingOperation(Widgets.getWidgetOperationStatus)
Widgets.getWidgetOperationStatus
is defined as a polling with return value: https://github.com/Azure/azure-rest-api-specs/blob/934f8b595b6aba70096c6fd19089c3986b344c0c/specification/contosowidgetmanager/Contoso.WidgetManager/main.tsp#L46
getWidgetOperationStatus is GetResourceOperationStatus<WidgetSuite>;
So, the LroMetadata contains ResultPath
(because you have a resource polling), but no ReturnType
(because its delete).
@catalinaperalta I created a PR to fix the problematic spec: https://github.com/Azure/azure-rest-api-specs/pull/30012
Hi, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!
Describe the issue or request Someone from the API mgmt team tried to run
tsp-client init -c https://github.com/Azure/azure-rest-api-specs/blob/431eb865a581da2cd7b9e953ae52cb146f31c2a6/specification/contosowidgetmanager/Contoso.WidgetManager/tspconfig.yaml
in the azure-sdk-for-net repo and ran into the following emitter issue:Describe your ideas for solutions I would expect the contoso project in the azure-rest-api-specs repo to be able to be generated with the csharp emitter.
Add labels As appropriate, select a label to describe how hard the issue is to work around or how hard it would be to do without a particular feature that could help make it easier. These labels start with "workaround".
Also select a label that describes how many instances of the workaround you would have to do without the bug being fixed or feature implemented. These labels start with "instances".
These labels will help priority bug fixes and feature requests.
If this bug or feature request is for older versions of autorest, please remove the v3 label and add the v2 label as appropriate.