diff --git a/specification/cognitiveservices/HealthInsights/healthinsights.common/model.common.response.tsp b/specification/cognitiveservices/HealthInsights/healthinsights.common/model.common.response.tsp index 96f222532591..64648b8e0614 100644 --- a/specification/cognitiveservices/HealthInsights/healthinsights.common/model.common.response.tsp +++ b/specification/cognitiveservices/HealthInsights/healthinsights.common/model.common.response.tsp @@ -5,6 +5,7 @@ using TypeSpec.Rest; namespace AzureHealthInsights; alias Response = { + #suppress "@azure-tools/typespec-azure-core/no-format" "This is an old spec" @doc("A processing job identifier.") @visibility("read") @key @@ -32,7 +33,6 @@ alias Response = { errors?: Azure.Core.Foundations.Error[]; }; - @doc("An inference made by the model regarding a patient.") model Inference { @doc("The value of the inference, as relevant for the given inference type.") diff --git a/specification/cognitiveservices/HealthInsights/healthinsights.common/primitives.tsp b/specification/cognitiveservices/HealthInsights/healthinsights.common/primitives.tsp index a377638982d9..c1fabf7a1040 100644 --- a/specification/cognitiveservices/HealthInsights/healthinsights.common/primitives.tsp +++ b/specification/cognitiveservices/HealthInsights/healthinsights.common/primitives.tsp @@ -2,16 +2,16 @@ using Azure.Core; using TypeSpec.Http; namespace AzureHealthInsights; +#suppress "@azure-tools/typespec-azure-core/long-running-polling-operation-required" "This is a template" @doc("Long running RPC operation template") op LongRunningRpcOperation< - TParams extends object, - TResponse extends object, - Traits extends object = {} - > is RpcOperation< - TParams & Traits, - Foundations.AcceptedResponse | TResponse, - Traits - >; + TParams, + TResponse +> is Azure.Core.Foundations.Operation< + TParams & RepeatabilityRequestHeaders, + (Foundations.AcceptedResponse & + RepeatabilityResponseHeaders) | TResponse, + RepeatabilityRequestHeaders & RepeatabilityResponseHeaders, + Azure.Core.Foundations.ErrorResponse +>; diff --git a/specification/cognitiveservices/HealthInsights/healthinsights.oncophenotype/route.oncophenotype.tsp b/specification/cognitiveservices/HealthInsights/healthinsights.oncophenotype/route.oncophenotype.tsp index b4ac1b2b311b..deb8469dd91a 100644 --- a/specification/cognitiveservices/HealthInsights/healthinsights.oncophenotype/route.oncophenotype.tsp +++ b/specification/cognitiveservices/HealthInsights/healthinsights.oncophenotype/route.oncophenotype.tsp @@ -17,14 +17,21 @@ interface OncoPhenotype { @summary("Get Onco Phenotype job details") @tag("OncoPhenotype") @doc("Gets the status and details of the Onco Phenotype job.") - @example("./examples/SuccessfulOncoPhenotypeResponse.json", "SuccessfulOncoPhenotypeGetAnalyzeStatus") + @example( + "./examples/SuccessfulOncoPhenotypeResponse.json", + "SuccessfulOncoPhenotypeGetAnalyzeStatus" + ) GetJob is Azure.Core.ResourceRead; + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "There is no long-running RPC template in Azure.Core" @summary("Create Onco Phenotype job") @tag("OncoPhenotype") @doc("Creates an Onco Phenotype job with the given request body.") @pollingOperation(OncoPhenotype.GetJob) @route("/oncophenotype/jobs") - @example("./examples/SuccessfulOncoPhenotypeRequest.json", "SuccessfulOncoPhenotypeAnalyzeRequest") - CreateJob is LongRunningRpcOperation; + @example( + "./examples/SuccessfulOncoPhenotypeRequest.json", + "SuccessfulOncoPhenotypeAnalyzeRequest" + ) + CreateJob is LongRunningRpcOperation; } diff --git a/specification/cognitiveservices/HealthInsights/healthinsights.openapi/tspconfig.yaml b/specification/cognitiveservices/HealthInsights/healthinsights.openapi/tspconfig.yaml index e2d33c67e55f..b7a1eafdba74 100644 --- a/specification/cognitiveservices/HealthInsights/healthinsights.openapi/tspconfig.yaml +++ b/specification/cognitiveservices/HealthInsights/healthinsights.openapi/tspconfig.yaml @@ -6,5 +6,7 @@ emit: [ options: "@azure-tools/typespec-autorest": - output-file: "openapi.json" + azure-resource-provider-folder: "./data-plane" + emitter-output-dir: "{project-root}/../.." + output-file: "{azure-resource-provider-folder}/HealthInsights/{version-status}/{version}/openapi.json" examples-directory: "./examples" diff --git a/specification/cognitiveservices/HealthInsights/healthinsights.trialmatcher/route.trialmatcher.tsp b/specification/cognitiveservices/HealthInsights/healthinsights.trialmatcher/route.trialmatcher.tsp index 337120b151ba..413569f2327e 100644 --- a/specification/cognitiveservices/HealthInsights/healthinsights.trialmatcher/route.trialmatcher.tsp +++ b/specification/cognitiveservices/HealthInsights/healthinsights.trialmatcher/route.trialmatcher.tsp @@ -17,15 +17,21 @@ interface TrialMatcher { @summary("Get Trial Matcher job details") @tag("TrialMatcher") @doc("Gets the status and details of the Trial Matcher job.") - @example("./examples/SuccessfulTrialMatcherResponse.json", "SuccessfulTrialMatcherGetAnalyzeStatus") + @example( + "./examples/SuccessfulTrialMatcherResponse.json", + "SuccessfulTrialMatcherGetAnalyzeStatus" + ) GetJob is Azure.Core.ResourceRead; + #suppress "@azure-tools/typespec-azure-core/use-standard-operations" "There is no long-running RPC template in Azure.Core" @summary("Create Trial Matcher job") @tag("TrialMatcher") @doc("Creates a Trial Matcher job with the given request body.") @pollingOperation(TrialMatcher.GetJob) @route("/trialmatcher/jobs") - @example("./examples/SuccessfulTrialMatcherRequest.json", "SuccessfulTrialMatcherAnalyzeRequest") - CreateJob is LongRunningRpcOperation; + @example( + "./examples/SuccessfulTrialMatcherRequest.json", + "SuccessfulTrialMatcherAnalyzeRequest" + ) + CreateJob is LongRunningRpcOperation; } -