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

[Azure.Communication.Services][JobRouter] Modify swagger after SDK review #19750

Merged
merged 1 commit into from
Jul 19, 2022

Conversation

sarkar-rajarshi
Copy link
Member

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

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.

@openapi-workflow-bot
Copy link

Hi, @sarkar-rajarshi Thanks for your PR. I am workflow bot for review process. Here are some small tips.

  • Please ensure to do self-check against checklists in first PR comment.
  • PR assignee is the person auto-assigned and responsible for your current PR reviewing and merging.
  • For specs comparison cross API versions, Use API Specs Comparison Report Generator
  • If there is CI failure(s), to fix CI error(s) is mandatory for PR merging; or you need to provide justification in PR comment for explanation. How to fix?

  • Any feedback about review process or workflow bot, pls contact swagger and tools team. vscswagger@microsoft.com

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Jul 12, 2022

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️⚠️Breaking Change(Cross-Version): 78 Warnings warning [Detail]
    compared swaggers (via Oad v0.9.6)] new version base version
    communicationservicejobrouter.json 2022-07-18(c988c8c) 2021-10-20-preview2(main)

    The following breaking changes are detected by comparison with the latest preview version:

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

    Rule Message
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'AzureFunctionRule' removed or renamed?
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L1672:3
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L1666:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'AzureFunctionRuleCredential' removed or renamed?
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L1672:3
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L1666:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'ConditionalQueueSelector' removed or renamed?
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L1672:3
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L1666:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'ConditionalWorkerSelector' removed or renamed?
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L1672:3
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L1666:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'PassThroughQueueSelector' removed or renamed?
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L1672:3
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L1666:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'PassThroughWorkerSelector' removed or renamed?
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L1672:3
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L1666:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'RuleEngineQueueSelector' removed or renamed?
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L1672:3
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L1666:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'RuleEngineWorkerSelector' removed or renamed?
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L1672:3
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L1666:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'StaticQueueSelector' removed or renamed?
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L1672:3
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L1666:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'StaticWorkerSelector' removed or renamed?
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L1672:3
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L1666:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'WeightedAllocationQueueSelector' removed or renamed?
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L1672:3
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L1666:3
    ⚠️ 1006 - RemovedDefinition The new version is missing a definition that was found in the old version. Was 'WeightedAllocationWorkerSelector' removed or renamed?
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L1672:3
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L1666:3
    ⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouter_UpsertClassificationPolicy' to 'JobRouterAdministration_UpsertClassificationPolicy'. This will impact generated code.
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L10:7
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L10:7
    ⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouter_GetClassificationPolicy' to 'JobRouterAdministration_GetClassificationPolicy'. This will impact generated code.
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L66:7
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L66:7
    ⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouter_DeleteClassificationPolicy' to 'JobRouterAdministration_DeleteClassificationPolicy'. This will impact generated code.
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L107:7
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L107:7
    ⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouter_ListClassificationPolicies' to 'JobRouterAdministration_ListClassificationPolicies'. This will impact generated code.
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L147:7
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L147:7
    ⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouter_UpsertDistributionPolicy' to 'JobRouterAdministration_UpsertDistributionPolicy'. This will impact generated code.
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L195:7
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L195:7
    ⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouter_GetDistributionPolicy' to 'JobRouterAdministration_GetDistributionPolicy'. This will impact generated code.
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L251:7
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L251:7
    ⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouter_DeleteDistributionPolicy' to 'JobRouterAdministration_DeleteDistributionPolicy'. This will impact generated code.
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L292:7
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L292:7
    ⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouter_ListDistributionPolicies' to 'JobRouterAdministration_ListDistributionPolicies'. This will impact generated code.
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L332:7
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L332:7
    ⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouter_UpsertExceptionPolicy' to 'JobRouterAdministration_UpsertExceptionPolicy'. This will impact generated code.
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L380:7
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L380:7
    ⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouter_GetExceptionPolicy' to 'JobRouterAdministration_GetExceptionPolicy'. This will impact generated code.
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L436:7
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L436:7
    ⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouter_DeleteExceptionPolicy' to 'JobRouterAdministration_DeleteExceptionPolicy'. This will impact generated code.
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L477:7
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L477:7
    ⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouter_ListExceptionPolicies' to 'JobRouterAdministration_ListExceptionPolicies'. This will impact generated code.
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L517:7
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L517:7
    ⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouter_UpsertQueue' to 'JobRouterAdministration_UpsertQueue'. This will impact generated code.
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L1212:7
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L1206:7
    ⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouter_GetQueue' to 'JobRouterAdministration_GetQueue'. This will impact generated code.
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L1268:7
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L1262:7
    ⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouter_DeleteQueue' to 'JobRouterAdministration_DeleteQueue'. This will impact generated code.
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L1309:7
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L1303:7
    ⚠️ 1008 - ModifiedOperationId The operation id has been changed from 'JobRouter_ListQueues' to 'JobRouterAdministration_ListQueues'. This will impact generated code.
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L1349:7
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L1343:7
    ⚠️ 1009 - RemovedRequiredParameter The required parameter 'jobId' was removed in the new version.
    Old: JobRouter/preview/2021-10-20-preview2/communicationservicejobrouter.json#L1066:11
    ⚠️ 1010 - AddingRequiredParameter The required parameter 'id' was added in the new version.
    New: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L1072:11
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️⚠️LintDiff: 0 Warnings warning [Detail]
    compared tags (via openapi-validator v1.13.0) new version base version
    package-jobrouter-2022-07-18-preview package-jobrouter-2022-07-18-preview(c988c8c) default(main)

    The following errors/warnings exist before current PR submission:

    Rule Message
    ⚠️ R2007 - LongRunningOperationsWithLongRunningExtension The operation 'JobRouter_CloseJobAction' returns 202 status code, which indicates a long running operation, please enable 'x-ms-long-running-operation.
    Location: JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#L869
    ️️✔️Avocado succeeded [Detail] [Expand]
    Validation passes for Avocado.
    ️️✔️ApiReadinessCheck succeeded [Detail] [Expand]
    ️️✔️ModelValidation succeeded [Detail] [Expand]
    Validation passes for ModelValidation.
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️️✔️PoliCheck succeeded [Detail] [Expand]
    Validation passed for PoliCheck.
    ️⚠️SDK Track2 Validation: 28 Warnings warning [Detail]
    • The following tags are being changed in this PR
      • "https://github.com/Azure/azure-rest-api-specs/blob/c988c8cf8341e763aabe934e3afa3abe96bf71ce/specification/communication/data-plane/JobRouter/readme.md#tag-package-jobrouter-2022-07-18-preview">communication/data-plane/JobRouter/readme.md#package-jobrouter-2022-07-18-preview
    The following errors/warnings are introduced by current PR:
    Rule Message
    ⚠️ PreCheck/PropertyRedeclarationWarning "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"Schema 'BestWorkerMode' has a property 'kind' that is already declared the parent schema 'DistributionMode' but isn't significantly different. The property has been removed from BestWorkerMode"
    ⚠️ PreCheck/PropertyRedeclarationWarning "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"Schema 'CancelExceptionAction' has a property 'kind' that is already declared the parent schema 'ExceptionAction' but 'readonly' has been changed -- this is not permitted. The property has been removed from CancelExceptionAction"
    ⚠️ PreCheck/PropertyRedeclarationWarning "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"Schema 'ConditionalQueueSelectorAttachment' has a property 'kind' that is already declared the parent schema 'QueueSelectorAttachment' but 'readonly' has been changed -- this is not permitted. The property has been removed from ConditionalQueueSelectorAttachment"
    ⚠️ PreCheck/PropertyRedeclarationWarning "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"Schema 'ConditionalWorkerSelectorAttachment' has a property 'kind' that is already declared the parent schema 'WorkerSelectorAttachment' but 'readonly' has been changed -- this is not permitted. The property has been removed from ConditionalWorkerSelectorAttachment"
    ⚠️ PreCheck/PropertyRedeclarationWarning "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"Schema 'DirectMapRule' has a property 'kind' that is already declared the parent schema 'RouterRule' but isn't significantly different. The property has been removed from DirectMapRule"
    ⚠️ PreCheck/PropertyRedeclarationWarning "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"Schema 'ExpressionRule' has a property 'kind' that is already declared the parent schema 'RouterRule' but isn't significantly different. The property has been removed from ExpressionRule"
    ⚠️ PreCheck/PropertyRedeclarationWarning "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"Schema 'FunctionRule' has a property 'kind' that is already declared the parent schema 'RouterRule' but isn't significantly different. The property has been removed from FunctionRule"
    ⚠️ PreCheck/PropertyRedeclarationWarning "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"Schema 'LongestIdleMode' has a property 'kind' that is already declared the parent schema 'DistributionMode' but isn't significantly different. The property has been removed from LongestIdleMode"
    ⚠️ PreCheck/PropertyRedeclarationWarning "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"Schema 'ManualReclassifyExceptionAction' has a property 'kind' that is already declared the parent schema 'ExceptionAction' but 'readonly' has been changed -- this is not permitted. The property has been removed from ManualReclassifyExceptionAction"
    ⚠️ PreCheck/PropertyRedeclarationWarning "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"Schema 'PassThroughQueueSelectorAttachment' has a property 'kind' that is already declared the parent schema 'QueueSelectorAttachment' but 'readonly' has been changed -- this is not permitted. The property has been removed from PassThroughQueueSelectorAttachment"
    ⚠️ PreCheck/PropertyRedeclarationWarning "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"Schema 'PassThroughWorkerSelectorAttachment' has a property 'kind' that is already declared the parent schema 'WorkerSelectorAttachment' but 'readonly' has been changed -- this is not permitted. The property has been removed from PassThroughWorkerSelectorAttachment"
    ⚠️ PreCheck/PropertyRedeclarationWarning "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"Schema 'QueueLengthExceptionTrigger' has a property 'kind' that is already declared the parent schema 'JobExceptionTrigger' but isn't significantly different. The property has been removed from QueueLengthExceptionTrigger"
    ⚠️ PreCheck/PropertyRedeclarationWarning "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"Schema 'ReclassifyExceptionAction' has a property 'kind' that is already declared the parent schema 'ExceptionAction' but 'readonly' has been changed -- this is not permitted. The property has been removed from ReclassifyExceptionAction"
    ⚠️ PreCheck/PropertyRedeclarationWarning "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"Schema 'RoundRobinMode' has a property 'kind' that is already declared the parent schema 'DistributionMode' but isn't significantly different. The property has been removed from RoundRobinMode"
    ⚠️ PreCheck/PropertyRedeclarationWarning "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"Schema 'RuleEngineQueueSelectorAttachment' has a property 'kind' that is already declared the parent schema 'QueueSelectorAttachment' but 'readonly' has been changed -- this is not permitted. The property has been removed from RuleEngineQueueSelectorAttachment"
    ⚠️ PreCheck/PropertyRedeclarationWarning "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"Schema 'RuleEngineWorkerSelectorAttachment' has a property 'kind' that is already declared the parent schema 'WorkerSelectorAttachment' but 'readonly' has been changed -- this is not permitted. The property has been removed from RuleEngineWorkerSelectorAttachment"
    ⚠️ PreCheck/PropertyRedeclarationWarning "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"Schema 'StaticQueueSelectorAttachment' has a property 'kind' that is already declared the parent schema 'QueueSelectorAttachment' but 'readonly' has been changed -- this is not permitted. The property has been removed from StaticQueueSelectorAttachment"
    ⚠️ PreCheck/PropertyRedeclarationWarning "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"Schema 'StaticRule' has a property 'kind' that is already declared the parent schema 'RouterRule' but isn't significantly different. The property has been removed from StaticRule"
    ⚠️ PreCheck/PropertyRedeclarationWarning "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"Schema 'StaticWorkerSelectorAttachment' has a property 'kind' that is already declared the parent schema 'WorkerSelectorAttachment' but 'readonly' has been changed -- this is not permitted. The property has been removed from StaticWorkerSelectorAttachment"
    ⚠️ PreCheck/PropertyRedeclarationWarning "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"Schema 'WaitTimeExceptionTrigger' has a property 'kind' that is already declared the parent schema 'JobExceptionTrigger' but isn't significantly different. The property has been removed from WaitTimeExceptionTrigger"
    ⚠️ PreCheck/PropertyRedeclarationWarning "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"Schema 'WeightedAllocationQueueSelectorAttachment' has a property 'kind' that is already declared the parent schema 'QueueSelectorAttachment' but 'readonly' has been changed -- this is not permitted. The property has been removed from WeightedAllocationQueueSelectorAttachment"
    ⚠️ PreCheck/PropertyRedeclarationWarning "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"Schema 'WeightedAllocationWorkerSelectorAttachment' has a property 'kind' that is already declared the parent schema 'WorkerSelectorAttachment' but 'readonly' has been changed -- this is not permitted. The property has been removed from WeightedAllocationWorkerSelectorAttachment"
    ⚠️ Modeler/MissingType "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"The schema 'components·1p0tdsy·schemas·routerjob·properties·labels·additionalproperties' has no type or format information whatsoever. Location:\n file:///mnt/vss/_work/1/azure-rest-api-specs/specification/communication/data-plane/JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#/components/schemas/components·1p0tdsy·schemas·routerjob·properties·labels·additionalproperties"
    ⚠️ Modeler/MissingType "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"The schema 'components·yagnnw·schemas·routerjob·properties·tags·additionalproperties' has no type or format information whatsoever. Location:\n file:///mnt/vss/_work/1/azure-rest-api-specs/specification/communication/data-plane/JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#/components/schemas/components·yagnnw·schemas·routerjob·properties·tags·additionalproperties"
    ⚠️ Modeler/MissingType "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"The schema 'components·1m2sa7r·schemas·jobqueue·properties·labels·additionalproperties' has no type or format information whatsoever. Location:\n file:///mnt/vss/_work/1/azure-rest-api-specs/specification/communication/data-plane/JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#/components/schemas/components·1m2sa7r·schemas·jobqueue·properties·labels·additionalproperties"
    ⚠️ Modeler/MissingType "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"The schema 'components·1un595a·schemas·routerworker·properties·labels·additionalproperties' has no type or format information whatsoever. Location:\n file:///mnt/vss/_work/1/azure-rest-api-specs/specification/communication/data-plane/JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#/components/schemas/components·1un595a·schemas·routerworker·properties·labels·additionalproperties"
    ⚠️ Modeler/MissingType "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"The schema 'components·1jvpl8p·schemas·routerworker·properties·tags·additionalproperties' has no type or format information whatsoever. Location:\n file:///mnt/vss/_work/1/azure-rest-api-specs/specification/communication/data-plane/JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#/components/schemas/components·1jvpl8p·schemas·routerworker·properties·tags·additionalproperties"
    ⚠️ Modeler/MissingType "readme":"communication/data-plane/JobRouter/readme.md",
    "tag":"package-jobrouter-2022-07-18-preview",
    "details":"The schema 'components·1oe3kee·schemas·reclassifyexceptionaction·properties·labelstoupsert·additionalproperties' has no type or format information whatsoever. Location:\n file:///mnt/vss/_work/1/azure-rest-api-specs/specification/communication/data-plane/JobRouter/preview/2022-07-18-preview/communicationservicejobrouter.json#/components/schemas/components·1oe3kee·schemas·reclassifyexceptionaction·properties·labelstoupsert·additionalproperties"
    ️️✔️PrettierCheck succeeded [Detail] [Expand]
    Validation passes for PrettierCheck.
    ️️✔️SpellCheck succeeded [Detail] [Expand]
    Validation passes for SpellCheck.
    ️️✔️Lint(RPaaS) succeeded [Detail] [Expand]
    Validation passes for Lint(RPaaS).
    ️️✔️CadlValidation succeeded [Detail] [Expand]
    Validation passes for CadlValidation.
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Jul 12, 2022

    Swagger pipeline restarted successfully, please wait for status update in this comment.

    @openapi-workflow-bot
    Copy link

    NewApiVersionRequired reason:

    A service’s API is a contract with customers and is represented by using the api-version query parameter. Changes such as adding an optional property to a request/response or introducing a new operation is a change to the service’s contract and therefore requires a new api-version value. This is critically important for documentation, client libraries, and customer support.

    EXAMPLE: if a customer calls a service in the public cloud using api-version=2020-07-27, the new property or operation may exist but if they call the service in a government cloud, air-gapped cloud, or Azure Stack Hub cloud using the same api-version, the property or operation may not exist. Because there is no clear relationship between the service api-version and the new property/operation, customers can’t trust the documentation and Azure customer have difficulty helping customers diagnose issues. In addition, each client library version documents the service version it supports. When an optional property or new operation is added to a service and its Swagger, new client libraries must be produced to expose this functionality to customers. Without updating the api-version, it is unclear to customers which version of a client library supports these new features.

    @openapi-workflow-bot
    Copy link

    Hi @sarkar-rajarshi, one or multiple breaking change(s) is detected in your PR. Please check out the breaking change(s), and provide business justification in the PR comment and @ PR assignee why you must have these change(s), and how external customer impact can be mitigated. Please ensure to follow breaking change policy to request breaking change review and approval before proceeding swagger PR review.
    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.
    If you want to know the production traffic statistic, please see ARM Traffic statistic.
    If you think it is false positive breaking change, please provide the reasons in the PR comment, report to Swagger Tooling Team via https://aka.ms/swaggerfeedback.
    Note: To avoid breaking change, you can refer to Shift Left Solution for detecting breaking change in early phase at your service code repository.

    @openapi-workflow-bot
    Copy link

    Hi @sarkar-rajarshi, Your PR has some issues. Please fix the CI sequentially by following the order of Avocado, semantic validation, model validation, breaking change, lintDiff. If you have any questions, please post your questions in this channel https://aka.ms/swaggersupport.

    TaskHow to fixPriority
    AvocadoFix-AvocadoHigh
    Semantic validationFix-SemanticValidation-ErrorHigh
    Model validationFix-ModelValidation-ErrorHigh
    LintDiffFix-LintDiffhigh
    If you need further help, please feedback via swagger feedback.

    @sarkar-rajarshi sarkar-rajarshi marked this pull request as ready for review July 13, 2022 00:27
    @sarkar-rajarshi sarkar-rajarshi requested a review from a team as a code owner July 13, 2022 00:27
    @sarkar-rajarshi sarkar-rajarshi requested review from BlackRider97 and weidongxu-microsoft and removed request for a team July 13, 2022 00:27
    @sarkar-rajarshi sarkar-rajarshi changed the title Modify swagger as per review comments after SDK review [Azure.Communication.Services][JobRouter] Modify swagger after SDK review Jul 18, 2022
    @sarkar-rajarshi
    Copy link
    Member Author

    @anuchandy can we get this merged?

    @weidongxu-microsoft
    Copy link
    Member

    Do we have a diff between 2 versions? We might want to do a final check if there is other REST API change (other than "thresholdSeconds") between 2 versions.

    @sarkar-rajarshi
    Copy link
    Member Author

    @weidongxu-microsoft
    New version has been created: 2022-07-18-preview

    • Changes in new version:-
      • OperationId change for ops w.r.t., classification policy, exception policy, distribution policy and queue. Reason: Feedback from SDK review -> From SDK pov, we are splitting up the clients into 2 parts – for admin functions and day-to-day functions
      • Change in model definition:-
        • WaitTimeExceptionTrigger. Property “threshold” renamed to “thresholdSeconds”. Reason: To correctly represent server-side data type change from TimeSpan to double.
        • JobQueue. Property “distributionPolicyId” has been removed as required field. Reason: Bugfix.
      • Model Renames (review feedback after SDK Review):-
        • All “XXXXXResponse” -> “XXXXXResult”
        • All “PagedXXXXXX” -> “XXXXXItem”
        • AzureFunctionRule” -> “FunctionRule”
        • Add suffix “Attachment” to all derived classes of “WorkerSelectorAttachment” and “QueueSelectorAttachment”
        • Enum “JobStatus” -> “RouterJobStatus”

    @lmazuel lmazuel merged commit 240e5a3 into main Jul 19, 2022
    @lmazuel lmazuel deleted the feature/acs_router/sdk-review-comments branch July 19, 2022 23:01
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    5 participants