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
The template in cadl-ranch lro/rpc/legacy mostly reflect the runtime behavior, except the | TResponse in the last line of
Foundations.AcceptedResponse<{
@pollingLocation
@doc("The location for monitoring the operation state.")
@TypeSpec.Http.header("Operation-Location")operationLocation: TypeSpec.Rest.ResourceLocation<TPollResponse>;}&Foundations.RetryAfterHeader>|TResponse
It kind of follow a traditional solution in Swagger, that adding an additional 200 with the "logical result" or "final result" schema. But service never return 200 in that POST.
Removing the | TResponse would cause problem (as "logical result" from helper be empty model; I'd assume the schema of 202 get used instead). This would need to be double checked with Mark on helper method, if we really want to do this.
We should have coverage for LRO RPC operations that follow a similar format to what Health Insights supports.
Link to the TypeSpec: link
Custom LRO RPC template:
Link to operation defintion: link
LRO RPC template usage:
Health Insights LRO behavior:
OncoPhenotypeData
.Operation-Location
header, as well as repeatability and retry headers, no body.Operation-Location
url.OncoPhenotypeResult
.The text was updated successfully, but these errors were encountered: