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.51.0 #26956

Merged
merged 28 commits into from
Dec 8, 2023
Merged

[TypeSpec] Upgrade to 0.51.0 #26956

merged 28 commits into from
Dec 8, 2023

Conversation

mikeharder
Copy link
Member

@mikeharder mikeharder commented Dec 5, 2023

mikeharder and others added 24 commits November 9, 2023 08:13
- Reacts to typespec-azure#3936
Copy link

openapi-pipeline-app bot commented Dec 5, 2023

Next Steps to Merge

✔️ All automated merging requirements have been met! Refer to step 4 in the PR workflow diagram (even if your PR is for data plane, not ARM).

Copy link

openapi-pipeline-app bot commented Dec 5, 2023

Swagger Validation Report

️❌BreakingChange: 8 Errors, 0 Warnings failed [Detail]
compared swaggers (via Oad v0.10.4)] new version base version
communicationservicejobrouter.json 2023-11-01(72ca6ca) 2023-11-01(main)
Rule Message
1023 - TypeFormatChanged The new version has a different format than the previous one.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L2308:9
Old: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L2309:9
1023 - TypeFormatChanged The new version has a different format than the previous one.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L2610:9
Old: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L2611:9
1023 - TypeFormatChanged The new version has a different format than the previous one.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L2710:9
Old: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L2711:9
1023 - TypeFormatChanged The new version has a different format than the previous one.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L3486:9
Old: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L3487:9
1023 - TypeFormatChanged The new version has a different format than the previous one.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L3863:9
Old: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L3864:9
1023 - TypeFormatChanged The new version has a different format than the previous one.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L4046:9
Old: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L4047:9
1023 - TypeFormatChanged The new version has a different format than the previous one.
New: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L2222:5
Old: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L2222:5
Runtime Exception "new":"https://github.com/Azure/azure-rest-api-specs/blob/72ca6ca21c98d3338cad5ff205f9eb7cf0f9e3f4/specification/cognitiveservices/data-plane/HealthInsights/preview/2023-03-01-preview/openapi.json",
"old":"https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/data-plane/HealthInsights/preview/2023-03-01-preview/openapi.json",
"details":"Breaking change detector (OAD) invoked AutoRest. AutoRest threw a runtime error. First 6 lines of stack trace follow,
indexed. First line should contain AutoRest command line invocation details. Second line should contain the main message reported by AutoRest.
====================
1: Command failed: node "/mnt/vss/_work/_tasks/AzureApiValidation_5654d05d-82c1-48da-ad8f-161b817f6d41/0.0.66/common/temp/node_modules/.pnpm/@Azure+oad@0.10.4/node_modules/autorest/dist/app.js" --v2 --input-file=specification/cognitiveservices/data-plane/HealthInsights/preview/2023-03-01-preview/openapi.json --output-artifact=swagger-document.json --output-artifact=swagger-document.map --output-file=new --output-folder=/tmp
--------------------
2: ERROR: Schema violation: Data does not match any schemas from 'oneOf'
--------------------
3: - file:///mnt/vss/_work/1/azure-rest-api-specs/specification/cognitiveservices/data-plane/HealthInsights/preview/2023-03-01-preview/openapi.json:221:10 ($.paths["/trialmatcher/jobs"].post.responses["202"])
--------------------
4: ERROR: Schema violation: Data does not match any schemas from 'oneOf'
--------------------
5: - file:///mnt/vss/_work/1/azure-rest-api-specs/specification/cognitiveservices/data-plane/HealthInsights/preview/2023-03-01-preview/openapi.json:92:10 ($.paths["/oncophenotype/jobs"].post.responses["202"])
--------------------
6: FATAL: swagger-document/individual/schema-validator - FAILED
--------------------"
️️✔️Breaking Change(Cross-Version) succeeded [Detail] [Expand]
There are no breaking changes.
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️⚠️LintDiff: 0 Warnings warning [Detail]
compared tags (via openapi-validator v2.1.6) new version base version
2023-03-01-preview 2023-03-01-preview(72ca6ca) 2023-03-01-preview(main)
package-jobrouter-2023-11-01 package-jobrouter-2023-11-01(72ca6ca) package-jobrouter-2023-11-01(main)

The following errors/warnings exist before current PR submission:

Only 30 items are listed, please refer to log for more details.

Rule Message
⚠️ SecurityDefinitionDescription Security definition should have a description.
Location: HealthInsights/preview/2023-03-01-preview/openapi.json#L43
⚠️ LongRunningOperationsOptionsValidator A LRO Post operation with return schema must have 'x-ms-long-running-operation-options' extension enabled.
Location: HealthInsights/preview/2023-03-01-preview/openapi.json#L58
⚠️ ParameterNamesConvention header parameter name 'Repeatability-Request-ID' should be kebab case.
Location: HealthInsights/preview/2023-03-01-preview/openapi.json#L70
⚠️ ParameterDescription Parameter should have a description.
Location: HealthInsights/preview/2023-03-01-preview/openapi.json#L76
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: HealthInsights/preview/2023-03-01-preview/openapi.json#L151
⚠️ LongRunningOperationsOptionsValidator A LRO Post operation with return schema must have 'x-ms-long-running-operation-options' extension enabled.
Location: HealthInsights/preview/2023-03-01-preview/openapi.json#L187
⚠️ ParameterNamesConvention header parameter name 'Repeatability-Request-ID' should be kebab case.
Location: HealthInsights/preview/2023-03-01-preview/openapi.json#L199
⚠️ ParameterDescription Parameter should have a description.
Location: HealthInsights/preview/2023-03-01-preview/openapi.json#L205
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: HealthInsights/preview/2023-03-01-preview/openapi.json#L280
⚠️ SchemaDescriptionOrTitle Schema should have a description or title.
Location: HealthInsights/preview/2023-03-01-preview/openapi.json#L378
⚠️ SchemaNamesConvention Schema name should be Pascal case.
Location: HealthInsights/preview/2023-03-01-preview/openapi.json#L437
⚠️ SchemaNamesConvention Schema name should be Pascal case.
Location: HealthInsights/preview/2023-03-01-preview/openapi.json#L471
⚠️ SchemaNamesConvention Schema name should be Pascal case.
Location: HealthInsights/preview/2023-03-01-preview/openapi.json#L484
⚠️ SchemaNamesConvention Schema name should be Pascal case.
Location: HealthInsights/preview/2023-03-01-preview/openapi.json#L498
⚠️ EnumInsteadOfBoolean Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum.
Location: HealthInsights/preview/2023-03-01-preview/openapi.json#L1489
⚠️ EnumInsteadOfBoolean Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum.
Location: HealthInsights/preview/2023-03-01-preview/openapi.json#L1494
⚠️ EnumInsteadOfBoolean Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum.
Location: HealthInsights/preview/2023-03-01-preview/openapi.json#L1506
⚠️ EnumInsteadOfBoolean Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum.
Location: HealthInsights/preview/2023-03-01-preview/openapi.json#L1839
⚠️ EnumInsteadOfBoolean Booleans properties are not descriptive in all cases and can make them to use, evaluate whether is makes sense to keep the property as boolean or turn it into an enum.
Location: HealthInsights/preview/2023-03-01-preview/openapi.json#L1844
⚠️ SummaryAndDescriptionMustNotBeSame The summary and description values should not be same.
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L38
⚠️ SummaryAndDescriptionMustNotBeSame The summary and description values should not be same.
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L86
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L94
⚠️ SummaryAndDescriptionMustNotBeSame The summary and description values should not be same.
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L139
⚠️ OperationId OperationId for patch method should contain both 'Create' and 'Update'
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L140
⚠️ PatchInOperationName 'PATCH' operation 'JobRouterAdministrationOperations_UpsertClassificationPolicy' should use method name 'Update'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L140
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L150
⚠️ SummaryAndDescriptionMustNotBeSame The summary and description values should not be same.
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L230
⚠️ PathParameterSchema Path parameter should specify a maximum length (maxLength) and characters allowed (pattern).
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L238
⚠️ SummaryAndDescriptionMustNotBeSame The summary and description values should not be same.
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L271
⚠️ SummaryAndDescriptionMustNotBeSame The summary and description values should not be same.
Location: JobRouter/stable/2023-11-01/communicationservicejobrouter.json#L319
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️SwaggerAPIView succeeded [Detail] [Expand]
️️✔️TypeSpecAPIView succeeded [Detail] [Expand]
️❌ModelValidation: 2 Errors, 0 Warnings failed [Detail]
Rule Message
RESPONSE_STATUS_CODE_NOT_IN_EXAMPLE Following response status codes 200 for operation OncoPhenotype_CreateJob were present in the swagger spec, however they were not present in x-ms-examples. Please provide them.
Url: HealthInsights/preview/2023-03-01-preview/openapi.json#L86:18
ExampleUrl: preview/2023-03-01-preview/examples/SuccessfulOncoPhenotypeRequest.json#L52:16
RESPONSE_STATUS_CODE_NOT_IN_EXAMPLE Following response status codes 200 for operation TrialMatcher_CreateJob were present in the swagger spec, however they were not present in x-ms-examples. Please provide them.
Url: HealthInsights/preview/2023-03-01-preview/openapi.json#L215:18
ExampleUrl: preview/2023-03-01-preview/examples/SuccessfulTrialMatcherRequest.json#L149:16
️️✔️SemanticValidation succeeded [Detail] [Expand]
Validation passes for SemanticValidation.
️️✔️PoliCheck succeeded [Detail] [Expand]
Validation passed for PoliCheck.
️️✔️SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️️✔️Lint(RPaaS) succeeded [Detail] [Expand]
Validation passes for Lint(RPaaS).
️️✔️PR Summary succeeded [Detail] [Expand]
Validation passes for Summary.
️️✔️Automated merging requirements met succeeded [Detail] [Expand]
Posted by Swagger Pipeline | How to fix these errors?

Copy link

openapi-pipeline-app bot commented Dec 5, 2023

Swagger Generation Artifacts

️️✔️ApiDocPreview succeeded [Detail] [Expand]
 Please click here to preview with your @microsoft account. 
️️✔️SDK Breaking Change Tracking succeeded [Detail] [Expand]

Breaking Changes Tracking

Posted by Swagger Pipeline | How to fix these errors?

Copy link

openapi-pipeline-app bot commented Dec 5, 2023

Generated ApiView

Language Package Name ApiView Link
Swagger cognitiveservices-data-plane-HealthInsights https://apiview.dev/Assemblies/Review/0ddf312113fd481a99137a89b0246eb0
Swagger communication-data-plane-JobRouter https://apiview.dev/Assemblies/Review/92abcdb8307c4237a9b586e9a74117d7

@AzureRestAPISpecReview AzureRestAPISpecReview added BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required data-plane labels Dec 5, 2023
@AzureRestAPISpecReview AzureRestAPISpecReview added the TypeSpec Authored with TypeSpec label Dec 5, 2023
@mikeharder mikeharder marked this pull request as ready for review December 6, 2023 22:47
@mikeharder mikeharder requested review from johanste and MushMal and removed request for a team December 6, 2023 22:47
@mikeharder mikeharder added Approved-BreakingChange DO NOT USE! OBSOLETE label. See https://github.com/Azure/azure-sdk-tools/issues/6374 Approved-ModelValidation labels Dec 8, 2023
@mikeharder mikeharder assigned mikeharder and unassigned tjprescott Dec 8, 2023
@mikeharder mikeharder merged commit 0ab0fc5 into main Dec 8, 2023
36 checks passed
@mikeharder mikeharder deleted the typespec-51 branch December 8, 2023 06:05
arifibrahim4 pushed a commit that referenced this pull request Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved-BreakingChange DO NOT USE! OBSOLETE label. See https://github.com/Azure/azure-sdk-tools/issues/6374 Approved-ModelValidation BreakingChangeReviewRequired <valid label in PR review process>add this label when breaking change review is required data-plane TypeSpec Authored with TypeSpec
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants