Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TypeSpec] Upgrade to 0.46.0 #24776

Merged
merged 30 commits into from
Jul 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
a576f5a
Set packages to latest/next
mikeharder May 23, 2023
f5ab39a
Merge main before testing
mikeharder Jun 20, 2023
406b5f2
Improve merge script
mikeharder Jun 20, 2023
95617ba
tsp format
mikeharder Jun 20, 2023
451a689
Merge branch 'main' into typespec-next
mikeharder Jun 23, 2023
2c9fe2d
[typespec-next] Simplify script to merge main (#24563)
mikeharder Jun 23, 2023
96e645b
Merge branch 'main' into typespec-next
mikeharder Jun 23, 2023
2fe0db2
[typespec-next] React to fix for Azure/typespec-azure#3180 (#24561)
mikeharder Jun 23, 2023
ca9a996
[typespec-next] React to fix for microsoft/typespec#2114
mikeharder Jun 26, 2023
4d4a9a7
Merge branch 'main' into typespec-next
mikeharder Jun 26, 2023
4cde664
Merge branch 'main' into typespec-next
mikeharder Jun 27, 2023
0504ea7
[typespec-next] React to azure/typespec-azure#3225 (#24605)
mikeharder Jun 27, 2023
9162df1
Merge branch 'main' into typespec-next
mikeharder Jun 27, 2023
bf68b06
[typespec-next] React to azure/typespec-azure#3121 (#24615)
mikeharder Jun 27, 2023
b0d2110
Merge branch 'main' into typespec-next
mikeharder Jun 28, 2023
5ac8c96
Always revert pacakge-lock.json
mikeharder Jun 29, 2023
ea7b690
Merge branch 'main' into typespec-next
mikeharder Jun 29, 2023
99b6689
[typespec-next] Pin typespec-azure-core, regenerate autorest with mer…
mikeharder Jun 30, 2023
ec8b95c
[typespec-next] React to azure/typespec-azure#3177 (#24628)
mikeharder Jun 30, 2023
07056e7
Merge branch 'main' into typespec-next
mikeharder Jun 30, 2023
cec74c8
Merge branch 'main' into typespec-next
mikeharder Jul 1, 2023
ce26520
Merge branch 'main' into typespec-next
mikeharder Jul 3, 2023
7c147f1
Merge branch 'main' into typespec-next
mikeharder Jul 10, 2023
b6b416e
Fix bad merges
mikeharder Jul 10, 2023
1043619
Fix bad merge
mikeharder Jul 10, 2023
820db0e
Merge branch 'main' into typespec-next
mikeharder Jul 11, 2023
f285c01
Merge branch 'main' into typespec-next
mikeharder Jul 12, 2023
5effc65
Revert eng/pipelines/typespec-ci.yml
mikeharder Jul 12, 2023
de8f51a
Update package.json to 0.46
mikeharder Jul 12, 2023
1f3892d
npm update
mikeharder Jul 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
213 changes: 99 additions & 114 deletions package-lock.json

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
"@azure-tools/cadl-azure-resource-manager": "0.26.0",
"@azure-tools/cadl-providerhub": "0.26.0",
"@azure-tools/typespec-apiview": "0.4.4",
"@azure-tools/typespec-autorest": "0.31.0",
"@azure-tools/typespec-azure-core": "0.31.0",
"@azure-tools/typespec-azure-resource-manager": "0.31.0",
"@azure-tools/typespec-client-generator-core": "0.31.0",
"@azure-tools/typespec-providerhub": "0.31.0",
"@typespec/compiler": "0.45.2",
"@typespec/http": "0.45.0",
"@typespec/openapi": "0.45.0",
"@typespec/rest": "0.45.0",
"@typespec/versioning": "0.45.0",
"@azure-tools/typespec-autorest": "0.32.0",
"@azure-tools/typespec-azure-core": "0.32.0",
"@azure-tools/typespec-azure-resource-manager": "0.32.0",
"@azure-tools/typespec-client-generator-core": "0.32.0",
"@azure-tools/typespec-providerhub": "0.32.0",
"@typespec/compiler": "0.46.0",
"@typespec/http": "0.46.0",
"@typespec/openapi": "0.46.0",
"@typespec/rest": "0.46.0",
"@typespec/versioning": "0.46.0",
"@azure/avocado": "^0.8.4",
"@types/prettier": "^2.7.2",
"azure-rest-api-specs-eng-tools": "file:eng/tools",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,5 +404,6 @@ model ResponseError {
@header("x-ms-error-code")
@doc("Error code.")
msErrorCode?: string;

...ErrorResponse;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace AnomalyDetector.Multivariate;
@post
@doc("Operation template for multivariate anomaly detection service action.")
op MultivariateServiceAction<TParams, TResponse>(
...TParams
...TParams,
): TResponse | ResponseError;

// Operations
Expand All @@ -35,7 +35,7 @@ op getMultivariateBatchDetectionResult(
@format("uuid")
@doc("ID of a batch detection result.")
@path
resultId: string
resultId: string,
): MultivariateDetectionResult | ResponseError;

#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Azure core RpcOperation does not support custom error response"
Expand Down Expand Up @@ -68,6 +68,7 @@ op trainMultivariateModel is MultivariateServiceAction<
@doc("Location and ID of the model.")
@header
location: string;

@body result: AnomalyDetectionModel;
}
>;
Expand All @@ -84,7 +85,7 @@ op trainMultivariateModel is MultivariateServiceAction<
@doc("List models of a resource.")
op listMultivariateModels(
...SkipQueryParameter,
...TopQueryParameter
...TopQueryParameter,
): ModelList | ResponseError;

#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Does not fit any standard operation pattern"
Expand All @@ -98,7 +99,7 @@ op listMultivariateModels(
op deleteMultivariateModel(
@doc("Model identifier.")
@path
modelId: string
modelId: string,
): {
@doc("Delete model successfully.")
@statusCode
Expand All @@ -119,7 +120,7 @@ and variables used in the model.
op getMultivariateModel(
@doc("Model identifier.")
@path
modelId: string
modelId: string,
): AnomalyDetectionModel | ResponseError;

#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Does not fit any standard operation pattern"
Expand All @@ -144,7 +145,7 @@ op detectMultivariateBatchAnomaly(

@doc("Request of multivariate anomaly detection.")
@body
options: MultivariateBatchDetectionOptions
options: MultivariateBatchDetectionOptions,
): {
@statusCode statusCode: 202;

Expand All @@ -155,6 +156,7 @@ op detectMultivariateBatchAnomaly(
@doc("Location of the detection result.")
@header("Operation-Location")
operationLocation: string;

@body result: MultivariateDetectionResult;
} | ResponseError;

Expand All @@ -177,5 +179,5 @@ op detectMultivariateLastAnomaly(

@doc("Request of the last detection.")
@body
options: MultivariateLastDetectionOptions
options: MultivariateLastDetectionOptions,
): MultivariateLastDetectionResult | ResponseError;
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace AnomalyDetector.Univariate;
@post
@doc("Operation template for univariate anomaly detection service action.")
op UnivariateServiceAction<TParams, TResponse>(
...TParams
...TParams,
): TResponse | AnomalyDetectorError;

#suppress "@azure-tools/typespec-azure-core/use-standard-operations" "Azure core RpcOperation does not support custom error response"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ system.
model TrialMatcherInferenceEvidence {
@doc("A piece of evidence from the eligibility criteria text of a clinical trial.")
eligibilityCriteriaEvidence?: string;

...InferenceEvidence;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ model OncoPhenotypePatientResult {
model OncoPhenotypeInference {
@doc("The type of the Onco Phenotype inference")
type: OncoPhenotypeInferenceType;

...Inference;

@doc("The evidence corresponding to the inference value.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ The bio-medical category related to the coded concept, e.g. Diagnosis, Symptom,
model TrialMatcherInference {
@doc("The type of the Trial Matcher inference.")
type: TrialMatcherInferenceType;

...Inference;

@doc("The evidence corresponding to the inference value.")
Expand Down Expand Up @@ -328,6 +329,7 @@ model ContactDetails {
model ClinicalTrialResearchFacility {
@doc("The facility's name.")
name: string;

...GeographicLocation;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ model ChatChoice {
index: int32;

#suppress "@azure-tools/typespec-azure-core/no-nullable" "The operation already returns nulls"
#suppress "@azure-tools/typespec-autorest/union-unsupported" "https://github.com/Azure/typespec-azure/issues/3180"
@doc("The reason that this chat completions choice completed its generated.")
@projectedName("json", "finish_reason")
finishReason: CompletionsFinishReason | null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ model Choice {
logprobs: CompletionsLogProbabilityModel | null;

#suppress "@azure-tools/typespec-azure-core/no-nullable" "The operation already returns nulls"
#suppress "@azure-tools/typespec-autorest/union-unsupported" "https://github.com/Azure/typespec-azure/issues/3180"
@doc("Reason for finishing")
@projectedName("json", "finish_reason")
finishReason: CompletionsFinishReason | null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ op getChatCompletions is ResourceAction<

// Note: pending resolution of cross-language code emission behavior for long-running operations, image generation
// reuses its final operation response model as its status polling model.

#suppress "@azure-tools/typespec-azure-core/rpc-operation-request-body" "MUST fix in next update"
#suppress "@azure-tools/typespec-azure-core/no-rpc-path-params" "Allowed because this is a non-standard status polling operation."
@doc("Returns the status of the images operation")
@added(ServiceApiVersions.v2023_06_01_Preview)
Expand Down
Loading