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

[Test] Remove parameter schema #3678

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ankhyk
Copy link

@ankhyk ankhyk commented Oct 30, 2023

MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.

Azure 1st Party Service can try out the Shift Left experience to initiate API design review from ADO code repo. If you are interested, may request engineering support by filling in with the form https://aka.ms/ShiftLeftSupportForm.

Changelog

Add a changelog entry for this PR by answering the following questions:

  1. What's the purpose of the update?
    • new service onboarding
    • new API version
    • update existing version for new feature
    • update existing version to fix swagger quality issue in s360
    • Other, please clarify
  2. When are you targeting to deploy the new service/feature to public regions? Please provide the date or, if the date is not yet available, the month.
  3. When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month.
  4. If updating an existing version, please select the specific language SDKs and CLIs that must be refreshed after the swagger is published.
    • SDK of .NET (need service team to ensure code readiness)
    • SDK of Python
    • SDK of Java
    • SDK of Js
    • SDK of Go
    • PowerShell
    • CLI
    • Terraform
    • No refresh required for updates in this PR

Contribution checklist:

If any further question about AME onboarding or validation tools, please view the FAQ.

ARM API Review Checklist

Applicability: ⚠️

If your changes encompass only the following scenarios, you should SKIP this section, as these scenarios do not require ARM review.

  • Change to data plane APIs
  • Adding new properties
  • All removals

Otherwise your PR may be subject to ARM review requirements. Complete the following:

  • Check this box if any of the following appy to the PR so that the label "ARMReview" and "WaitForARMFeedback" will be added by bot to kick off ARM API Review. Missing to check this box in the following scenario may result in delays to the ARM manifest review and deployment.

    • Adding a new service
    • Adding new API(s)
    • Adding a new API version
      -[ ] To review changes efficiently, ensure you are using OpenAPIHub to initialize the PR for adding a new version. More details, refer to the wiki.
  • Ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

  • If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist

If any of the following scenarios apply to the PR, request approval from the Breaking Change Review Board as defined in the Breaking Change Policy.

  • Removing API(s) in a stable version
  • Removing properties in a stable version
  • Removing API version(s) in a stable version
  • Updating API in a stable or public preview version with Breaking Change Validation errors
  • Updating API(s) in public preview over 1 year (refer to Retirement of Previews)

Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.

Please follow the link to find more details on PR review process.

@ankhyk
Copy link
Author

ankhyk commented Oct 30, 2023

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@ankhyk
Copy link
Author

ankhyk commented Oct 30, 2023

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@ankhyk
Copy link
Author

ankhyk commented Oct 31, 2023

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@JackTn
Copy link

JackTn commented Nov 1, 2023

/azp run

Copy link

No pipelines are associated with this pull request.

@JackTn
Copy link

JackTn commented Nov 1, 2023

/azp run

Copy link

Automatic PR validation started. This comment will be populated with next steps to merge this PR once validation is completed. Please wait ⌛.

Copy link

No pipelines are associated with this pull request.

Copy link

openapi-dev-app-jacktn bot commented Nov 1, 2023

Swagger Validation Report

️❌BreakingChange: 1 Errors, 0 Warnings failed [Detail]
Rule Message
Runtime Exception "new":"https://github.com/openapi-env-test/azure-rest-api-specs/blob/070136c7eb806287d41b60fc9d1338988e501278/specification/developerhub/resource-manager/Microsoft.DevHub/preview/2022-04-01-preview/workflow.json",
"old":"https://github.com/openapi-env-test/azure-rest-api-specs/blob/main/specification/developerhub/resource-manager/Microsoft.DevHub/preview/2022-04-01-preview/workflow.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/AzureApiValidationTest_1a18ed4f-f3bf-4f34-9fed-13cb57bd2410/0.0.367/common/temp/node_modules/.pnpm/@Azure[email protected]/node_modules/autorest/dist/app.js" --v2 --input-file=specification/developerhub/resource-manager/Microsoft.DevHub/preview/2022-04-01-preview/workflow.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/developerhub/resource-manager/Microsoft.DevHub/preview/2022-04-01-preview/workflow.json:79:8 ($.paths["/subscriptions/subscriptionId/providers/Microsoft.DevHub/locations/location/githuboauth/default/getGitHubOAuthInfo"].post.parameters)
--------------------
4: FATAL: swagger-document/individual/schema-validator - FAILED
--------------------
5: FATAL: Error: [OperationAbortedException] Error occurred. Exiting.
--------------------
6: Process() cancelled due to exception : [OperationAbortedException] Error occurred. Exiting.
--------------------"
️️✔️Breaking Change(Cross-Version) succeeded [Detail] [Expand]
There are no breaking changes.
️⚠️LintDiff: 0 Warnings warning [Detail]
compared tags (via openapi-validator v2.1.6) new version base version
package-preview-2022-04 package-preview-2022-04(070136c) package-preview-2022-04(main)

The following errors/warnings exist before current PR submission:

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

Rule Message
ParametersInPointGet Query parameter code should be removed. Point Get's MUST not have query parameters other than api version.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L123
ParametersInPointGet Query parameter state should be removed. Point Get's MUST not have query parameters other than api version.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L123
GetCollectionOnlyHasValueAndNextLink Get endpoints for collections of resources must only have the value and nextLink properties in their model.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L182
DeleteResponseBodyEmpty The delete response body must be empty.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L402
UniqueXmsEnumName Must not have duplicate name of x-ms-enum extension , make sure every x-ms-enum name unique. The duplicate x-ms-enum name: manifesttype, path: $['ManifestType']
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L686
⚠️ PreviewVersionOverOneYear The API version:2022-04-01-preview having been in a preview state over one year , please move it to GA or retire.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L4
⚠️ PageableOperation Based on the response model schema, operation 'Operations_List' might be pageable. Consider adding the x-ms-pageable extension.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L38
⚠️ LatestVersionOfCommonTypesMustBeUsed Use the latest version v5 of types.json.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L47
⚠️ LatestVersionOfCommonTypesMustBeUsed Use the latest version v5 of types.json.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L54
⚠️ LatestVersionOfCommonTypesMustBeUsed Use the latest version v5 of types.json.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L60
⚠️ PostOperationIdContainsUrlVerb OperationId should contain the verb: 'getgithuboauthinfo' in:'GitHubOAuth'. Consider updating the operationId
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L77
⚠️ LatestVersionOfCommonTypesMustBeUsed Use the latest version v5 of types.json.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L81
⚠️ LatestVersionOfCommonTypesMustBeUsed Use the latest version v5 of types.json.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L84
⚠️ LatestVersionOfCommonTypesMustBeUsed Use the latest version v5 of types.json.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L87
⚠️ ParameterDescription Parameter should have a description.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L89
⚠️ LatestVersionOfCommonTypesMustBeUsed Use the latest version v5 of types.json.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L105
⚠️ GetInOperationName 'GET' operation 'GitHubOAuthCallback' should use method name 'Get' or Method name start with 'List'. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L121
⚠️ LatestVersionOfCommonTypesMustBeUsed Use the latest version v5 of types.json.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L125
⚠️ LatestVersionOfCommonTypesMustBeUsed Use the latest version v5 of types.json.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L128
⚠️ LatestVersionOfCommonTypesMustBeUsed Use the latest version v5 of types.json.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L131
⚠️ LatestVersionOfCommonTypesMustBeUsed Use the latest version v5 of types.json.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L150
⚠️ ListInOperationName Since operation response has model definition in array type, it should be of the form '_list'.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L162
⚠️ PageableOperation Based on the response model schema, operation 'ListGitHubOAuth' might be pageable. Consider adding the x-ms-pageable extension.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L162
⚠️ LatestVersionOfCommonTypesMustBeUsed Use the latest version v5 of types.json.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L170
⚠️ LatestVersionOfCommonTypesMustBeUsed Use the latest version v5 of types.json.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L173
⚠️ LatestVersionOfCommonTypesMustBeUsed Use the latest version v5 of types.json.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L176
⚠️ LatestVersionOfCommonTypesMustBeUsed Use the latest version v5 of types.json.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L189
⚠️ OperationIdNounConflictingModelNames OperationId has a noun that conflicts with one of the model names in definitions section. The model name will be disambiguated to 'WorkflowModel'. Consider using the plural form of 'Workflow' to avoid this. Note: If you have already shipped an SDK on top of this spec, fixing this warning may introduce a breaking change.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L205
⚠️ LatestVersionOfCommonTypesMustBeUsed Use the latest version v5 of types.json.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L209
⚠️ LatestVersionOfCommonTypesMustBeUsed Use the latest version v5 of types.json.
Location: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L212
️️✔️PR Summary succeeded [Detail] [Expand]
️️✔️[NotRequired_Staging] Lint(RPaaS) succeeded [Detail] [Expand]
Validation passes for Lint(RPaaS).
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️❌SemanticValidation: 1 Errors, 0 Warnings failed [Detail]
Rule Message
OBJECT_MISSING_REQUIRED_PROPERTY Missing required property: schema
JsonUrl: Microsoft.DevHub/preview/2022-04-01-preview/workflow.json#L89:11
️️✔️~[NotRequired_Staging] SwaggerAPIView succeeded [Detail] [Expand]
️️✔️~[NotRequired_Staging] TypeSpecAPIView succeeded [Detail] [Expand]
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️️✔️PoliCheck succeeded [Detail] [Expand]
Validation passed for PoliCheck.
️️✔️[NotRequired_Staging] PrettierCheck succeeded [Detail] [Expand]
Validation passes for PrettierCheck.
️️✔️[NotRequired_Staging] SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️❌[NotRequired_Staging] SDK Track2 Validation: 1 Errors, 5 Warnings failed [Detail]
  • The following tags are being changed in this PR
    • "https://github.com/openapi-env-test/azure-rest-api-specs/blob/070136c7eb806287d41b60fc9d1338988e501278/specification/developerhub/resource-manager/readme.md#tag-package-preview-2022-04">developerhub/resource-manager/readme.md#package-preview-2022-04
The following errors/warnings are introduced by current PR:
Rule Message
UniqueXmsEnumName "readme":"developerhub/resource-manager/readme.md",
"tag":"package-preview-2022-04",
"details":"Must not have duplicate name of x-ms-enum extension ,
make sure every x-ms-enum name unique. The duplicate x-ms-enum name: manifesttype,
path: $['ManifestType']"
⚠️ PageableOperation "readme":"developerhub/resource-manager/readme.md",
"tag":"package-preview-2022-04",
"details":"Based on the response model schema,
operation 'Operations_List' might be pageable. Consider adding the x-ms-pageable extension."
⚠️ PageableOperation "readme":"developerhub/resource-manager/readme.md",
"tag":"package-preview-2022-04",
"details":"Based on the response model schema,
operation 'ListGitHubOAuth' might be pageable. Consider adding the x-ms-pageable extension."
⚠️ PostOperationIdContainsUrlVerb "readme":"developerhub/resource-manager/readme.md",
"tag":"package-preview-2022-04",
"details":"OperationId should contain the verb: 'getgithuboauthinfo' in:'GitHubOAuth'. Consider updating the operationId"
⚠️ PreviewVersionOverOneYear "readme":"developerhub/resource-manager/readme.md",
"tag":"package-preview-2022-04",
"details":"The API version:2022-04-01-preview having been in a preview state over one year ,
please move it to GA or retire."
⚠️ UniqueXmsExample "readme":"developerhub/resource-manager/readme.md",
"tag":"package-preview-2022-04",
"details":"Do not have duplicate name of x-ms-example,
make sure every x-ms-example name unique. Duplicate x-ms-example: List Workflows"
💬 "readme":"developerhub/resource-manager/readme.md",
"tag":"package-preview-2022-04",
"details":"openapiValidatorPluginFunc: Validating 'file:///mnt/vss/_work/1/azure-rest-api-specs/specification/developerhub/resource-manager/Microsoft.DevHub/preview/2022-04-01-preview/workflow.json'"


The following errors/warnings exist before current PR submission:

Posted by Swagger Pipeline | How to fix these errors?

Copy link

openapi-dev-app-jacktn bot commented Nov 1, 2023

Swagger Generation Artifacts

️🔄[NotRequired_Staging] ApiDocPreview inProgress [Detail]
️️✔️[NotRequired_Staging] SDK Breaking Change Tracking succeeded [Detail] [Expand]

Breaking Changes Tracking

Posted by Swagger Pipeline | How to fix these errors?

Copy link

openapi-dev-app-jacktn bot commented Nov 1, 2023

Generated ApiView

Language Package Name ApiView Link
Swagger Microsoft.DevHub https://apiviewstaging.azurewebsites.net/Assemblies/Review/e12252963b1e43c5814b3de4b9f7164d

@JackTn
Copy link

JackTn commented Nov 6, 2023

/azp run

Copy link

openapi-pipeline-app-test bot commented Nov 6, 2023

Automatic PR validation restarted. This comment will be populated with next steps to merge this PR once validation is completed. Please wait ⌛.

Copy link

openapi-pipeline-app-test bot commented Nov 6, 2023

Swagger Validation Report

️🔄BreakingChange inProgress [Detail]
️️✔️Breaking Change(Cross-Version) succeeded [Detail] [Expand]
There are no breaking changes.
️🔄LintDiff inProgress [Detail]
️️✔️PR Summary succeeded [Detail] [Expand]
️️✔️[NotRequired_Staging] Lint(RPaaS) succeeded [Detail] [Expand]
Validation passes for Lint(RPaaS).
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️🔄SemanticValidation inProgress [Detail]
️️✔️~[NotRequired_Staging] SwaggerAPIView succeeded [Detail] [Expand]
️️✔️~[NotRequired_Staging] TypeSpecAPIView succeeded [Detail] [Expand]
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️️✔️PoliCheck succeeded [Detail] [Expand]
Validation passed for PoliCheck.
️️✔️[NotRequired_Staging] PrettierCheck succeeded [Detail] [Expand]
Validation passes for PrettierCheck.
️️✔️[NotRequired_Staging] SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️🔄[NotRequired_Staging] SDK Track2 Validation inProgress [Detail]
Posted by Swagger Pipeline | How to fix these errors?

Copy link

openapi-pipeline-app-test bot commented Nov 6, 2023

Swagger Generation Artifacts

️🔄[NotRequired_Staging] ApiDocPreview inProgress [Detail]
️️✔️[NotRequired_Staging] SDK Breaking Change Tracking succeeded [Detail] [Expand]

Breaking Changes Tracking

Posted by Swagger Pipeline | How to fix these errors?

Copy link

No pipelines are associated with this pull request.

Copy link

openapi-pipeline-app-test bot commented Nov 6, 2023

Generated ApiView

Language Package Name ApiView Link
Swagger Microsoft.DevHub https://apiviewstaging.azurewebsites.net/Assemblies/Review/e12252963b1e43c5814b3de4b9f7164d

Copy link

Automatic PR validation started. This comment will be populated with next steps to merge this PR once validation is completed. Please wait ⌛.

Copy link

openapi-dev-app-jacktn bot commented Nov 6, 2023

Swagger Validation Report

️🔄BreakingChange inProgress [Detail]
️️✔️Breaking Change(Cross-Version) succeeded [Detail] [Expand]
There are no breaking changes.
️🔄LintDiff inProgress [Detail]
️️✔️PR Summary succeeded [Detail] [Expand]
️️✔️[NotRequired_Staging] Lint(RPaaS) succeeded [Detail] [Expand]
Validation passes for Lint(RPaaS).
️️✔️Avocado succeeded [Detail] [Expand]
Validation passes for Avocado.
️️✔️ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️🔄SemanticValidation inProgress [Detail]
️️✔️~[NotRequired_Staging] SwaggerAPIView succeeded [Detail] [Expand]
️️✔️~[NotRequired_Staging] TypeSpecAPIView succeeded [Detail] [Expand]
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️️✔️PoliCheck succeeded [Detail] [Expand]
Validation passed for PoliCheck.
️️✔️[NotRequired_Staging] PrettierCheck succeeded [Detail] [Expand]
Validation passes for PrettierCheck.
️️✔️[NotRequired_Staging] SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️🔄[NotRequired_Staging] SDK Track2 Validation inProgress [Detail]
Posted by Swagger Pipeline | How to fix these errors?

Copy link

openapi-dev-app-jacktn bot commented Nov 6, 2023

Swagger Generation Artifacts

️🔄[NotRequired_Staging] ApiDocPreview inProgress [Detail]
️️✔️[NotRequired_Staging] SDK Breaking Change Tracking succeeded [Detail] [Expand]

Breaking Changes Tracking

Posted by Swagger Pipeline | How to fix these errors?

Copy link

openapi-dev-app-jacktn bot commented Nov 6, 2023

Generated ApiView

Language Package Name ApiView Link
Swagger Microsoft.DevHub https://apiviewstaging.azurewebsites.net/Assemblies/Review/e12252963b1e43c5814b3de4b9f7164d

@JackTn
Copy link

JackTn commented Nov 6, 2023

/azp run

Copy link

No pipelines are associated with this pull request.

Copy link

Swagger Validation Report

️⌛BreakingChange pending [Detail]
️⌛Breaking Change(Cross-Version) pending [Detail]
️⌛LintDiff pending [Detail]
️⌛PR Summary pending [Detail]
️⌛[NotRequired_Staging] Lint(RPaaS) pending [Detail]
️⌛Avocado pending [Detail]
️️✔️ModelValidation succeeded [Detail] [Expand]
Validation passes for ModelValidation.
️⌛SemanticValidation pending [Detail]
️⌛~[NotRequired_Staging] SwaggerAPIView pending [Detail]
️⌛~[NotRequired_Staging] TypeSpecAPIView pending [Detail]
️⌛CredScan pending [Detail]
️⌛PoliCheck pending [Detail]
️⌛[NotRequired_Staging] PrettierCheck pending [Detail]
️🔄[NotRequired_Staging] SpellCheck inProgress [Detail]
️⌛[NotRequired_Staging] SDK Track2 Validation pending [Detail]
Posted by Swagger Pipeline | How to fix these errors?

@ankhyk ankhyk changed the title [TEST] Update workflow.json [TEST] Remove parameter schema.json Nov 7, 2023
@ankhyk ankhyk changed the title [TEST] Remove parameter schema.json [TEST] Remove parameter schema Nov 7, 2023
@ankhyk ankhyk changed the title [TEST] Remove parameter schema [Test] Remove parameter schema Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants