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

authorization: adding the missing $filter option #25080

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

Conversation

tombuildsstuff
Copy link
Contributor

@tombuildsstuff tombuildsstuff commented Aug 1, 2023

@openapi-workflow-bot
Copy link

Hi, @tombuildsstuff! Thank you for your pull request. To help get your PR merged:

  • Ensure you reviewed the checklists in the PR description.
  • Know that PR assignee is the person auto-assigned and responsible for your current PR review and approval.
  • For convenient view of the API changes made by this PR, refer to the URLs provided in the table in the Generated ApiView comment added to this PR. You can use ApiView to show API versions diff.
  • @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Aug 1, 2023

    Swagger Validation Report

    ️❌BreakingChange: 1 Errors, 0 Warnings failed [Detail]
    compared swaggers (via Oad v0.10.4)] new version base version
    RoleManagementPolicy.json 2020-10-01(70888c5) 2020-10-01(main)
    Rule Message
    1043 - AddingOptionalParameter The optional parameter '$filter' was added in the new version.
    New: Microsoft.Authorization/stable/2020-10-01/RoleManagementPolicy.json#L205:11
    ️️✔️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.3) new version base version
    package-2020-10-01 package-2020-10-01(70888c5) package-2020-10-01(main)
    package-2022-04-01 package-2022-04-01(70888c5) package-2022-04-01(main)

    The following errors/warnings exist before current PR submission:

    Rule Message
    ResourceNameRestriction The resource name parameter 'roleManagementPolicyName' should be defined with a 'pattern' restriction.
    Location: Microsoft.Authorization/stable/2020-10-01/RoleManagementPolicy.json#L37
    ResourceNameRestriction The resource name parameter 'roleManagementPolicyName' should be defined with a 'pattern' restriction.
    Location: Microsoft.Authorization/stable/2020-10-01/RoleManagementPolicy.json#L37
    NoDuplicatePathsForScopeParameter Path '/{scope}/providers/Microsoft.Authorization/roleManagementPolicies/{roleManagementPolicyName}' with explicitly defined scope is a duplicate of path '/{scope}/providers/Microsoft.Authorization/roleManagementPolicies' that has the scope parameter.'.
    Location: Microsoft.Authorization/stable/2020-10-01/RoleManagementPolicy.json#L189
    NoDuplicatePathsForScopeParameter Path '/{scope}/providers/Microsoft.Authorization/roleManagementPolicies/{roleManagementPolicyName}' with explicitly defined scope is a duplicate of path '/{scope}/providers/Microsoft.Authorization/roleManagementPolicies' that has the scope parameter.'.
    Location: Microsoft.Authorization/stable/2020-10-01/RoleManagementPolicy.json#L189
    TopLevelResourcesListBySubscription The top-level resource 'RoleManagementPolicy' does not have list by subscription operation, please add it.
    Location: Microsoft.Authorization/stable/2020-10-01/RoleManagementPolicy.json#L294
    TopLevelResourcesListBySubscription The top-level resource 'RoleManagementPolicy' does not have list by subscription operation, please add it.
    Location: Microsoft.Authorization/stable/2020-10-01/RoleManagementPolicy.json#L294
    ⚠️ ParameterNotUsingCommonTypes Not using the common-types defined parameter 'scope'.
    Location: Microsoft.Authorization/stable/2020-10-01/RoleManagementPolicy.json#L44
    ⚠️ ParameterNotUsingCommonTypes Not using the common-types defined parameter 'scope'.
    Location: Microsoft.Authorization/stable/2020-10-01/RoleManagementPolicy.json#L44
    ⚠️ ParameterNotUsingCommonTypes Not using the common-types defined parameter 'scope'.
    Location: Microsoft.Authorization/stable/2020-10-01/RoleManagementPolicy.json#L90
    ⚠️ ParameterNotUsingCommonTypes Not using the common-types defined parameter 'scope'.
    Location: Microsoft.Authorization/stable/2020-10-01/RoleManagementPolicy.json#L90
    ⚠️ ParameterNotUsingCommonTypes Not using the common-types defined parameter 'scope'.
    Location: Microsoft.Authorization/stable/2020-10-01/RoleManagementPolicy.json#L148
    ⚠️ ParameterNotUsingCommonTypes Not using the common-types defined parameter 'scope'.
    Location: Microsoft.Authorization/stable/2020-10-01/RoleManagementPolicy.json#L148
    ⚠️ ParameterNotUsingCommonTypes Not using the common-types defined parameter 'scope'.
    Location: Microsoft.Authorization/stable/2020-10-01/RoleManagementPolicy.json#L196
    ⚠️ ParameterNotUsingCommonTypes Not using the common-types defined parameter 'scope'.
    Location: Microsoft.Authorization/stable/2020-10-01/RoleManagementPolicy.json#L196
    ⚠️ AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.Authorization/stable/2020-10-01/RoleManagementPolicy.json#L339
    ⚠️ AvoidNestedProperties Consider using x-ms-client-flatten to provide a better end user experience
    Location: Microsoft.Authorization/stable/2020-10-01/RoleManagementPolicy.json#L339
    ️⚠️Avocado: 1 Warnings warning [Detail]
    Rule Message
    ⚠️ MULTIPLE_API_VERSION The default tag contains multiple API versions swaggers.
    readme: specification/authorization/resource-manager/readme.md
    tag: specification/authorization/resource-manager/readme.md#tag-package-2022-05-01-preview
    ️️✔️ApiReadinessCheck succeeded [Detail] [Expand]
    ️⚠️~[NotRequired_Staging] ServiceAPIReadinessTest: 0 Warnings warning [Detail]

    API Test is not triggered due to precheck failure. Check pipeline log for details.

    ️❌SwaggerAPIView: 0 Errors, 0 Warnings failed [Detail]
    ️️✔️CadlAPIView succeeded [Detail] [Expand]
    ️️✔️TypeSpecAPIView 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.
    ️️✔️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.
    ️️✔️TypeSpec Validation succeeded [Detail] [Expand]
    Validation passes for TypeSpec Validation.
    ️️✔️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?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Aug 1, 2023

    Swagger Generation Artifacts

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

    Breaking Changes Tracking


    azure-sdk-for-js - @azure/arm-authorization - 10.0.0-beta.2
    +	Class AuthorizationManagementClient has a new signature
    +	Interface RoleManagementPolicyAssignment no longer has parameter effectiveRules

    ️️✔️ azure-sdk-for-net-track2 succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs] Generate from 46bcd6b35a259dacfefa1693b3cd30c3e0ccb497. SDK Automation 14.0.0
      command	pwsh ./eng/scripts/Automation-Sdk-Init.ps1 ../azure-sdk-for-net_tmp/initInput.json ../azure-sdk-for-net_tmp/initOutput.json
      command	pwsh ./eng/scripts/Invoke-GenerateAndBuildV2.ps1 ../azure-sdk-for-net_tmp/generateInput.json ../azure-sdk-for-net_tmp/generateOutput.json
    • ️✔️Azure.ResourceManager.Authorization [View full logs]  [Preview SDK Changes] Breaking Change Detected
      info	[Changelog] Breaking Changes: /home/cloudtest/.nuget/packages/microsoft.dotnet.apicompat/5.0.0-beta.20467.1/build/Microsoft.DotNet.ApiCompat.targets(96,5): error : ApiCompat failed for '/mnt/vss/_work/1/s/azure-sdk-for-net/artifacts/bin/Azure.ResourceManager.Authorization/Debug/netstandard2.0/Azure.ResourceManager.Authorization.dll' [/mnt/vss/_work/1/s/azure-sdk-for-net/sdk/authorization/Azure.ResourceManager.Authorization/src/Azure.ResourceManager.Authorization.csproj::TargetFramework=netstandard2.0]
    ️⚠️ azure-sdk-for-python-track2 warning [Detail]
    • ⚠️Warning [Logs] Generate from 46bcd6b35a259dacfefa1693b3cd30c3e0ccb497. SDK Automation 14.0.0
      command	sh scripts/automation_init.sh ../azure-sdk-for-python_tmp/initInput.json ../azure-sdk-for-python_tmp/initOutput.json
      cmderr	[automation_init.sh] WARNING: Skipping azure-nspkg as it is not installed.
      command	sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json
      cmderr	[automation_generate.sh] notice
      cmderr	[automation_generate.sh]  New minor version of npm available! 9.6.7 -> 9.8.1
      cmderr	[automation_generate.sh] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.8.1>
      cmderr	[automation_generate.sh] npm notice Run `npm install -g npm@9.8.1` to update!
      cmderr	[automation_generate.sh] npm notice
    • ️✔️track2_azure-mgmt-authorization [View full logs]  [Preview SDK Changes]
      info	[Changelog]
    ️⚠️ azure-sdk-for-java warning [Detail]
    ️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs] Generate from 46bcd6b35a259dacfefa1693b3cd30c3e0ccb497. SDK Automation 14.0.0
      command	sh ./eng/scripts/automation_init.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
      command	generator automation-v2 ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
    • ️✔️sdk/resourcemanager/authorization/armauthorization [View full logs]  [Preview SDK Changes]
      info	[Changelog] ### Other Changes
      info	[Changelog]
      info	[Changelog] Total 0 breaking change(s), 0 additive change(s).
    ️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs] Generate from 46bcd6b35a259dacfefa1693b3cd30c3e0ccb497. SDK Automation 14.0.0
      command	sh .scripts/automation_init.sh ../azure-sdk-for-js_tmp/initInput.json ../azure-sdk-for-js_tmp/initOutput.json
      warn	File azure-sdk-for-js_tmp/initOutput.json not found to read
      command	sh .scripts/automation_generate.sh ../azure-sdk-for-js_tmp/generateInput.json ../azure-sdk-for-js_tmp/generateOutput.json
    • ️✔️@azure/arm-authorization [View full logs]  [Preview SDK Changes] Breaking Change Detected
      Only show 120 items here, please refer to log for details.
      info	[Changelog]   - Added Type Alias AccessReviewDecisionIdentityUnion
      info	[Changelog]   - Added Type Alias AccessReviewDecisionInsightPropertiesUnion
      info	[Changelog]   - Added Type Alias AccessReviewDecisionInsightType
      info	[Changelog]   - Added Type Alias AccessReviewDecisionPrincipalResourceMembershipType
      info	[Changelog]   - Added Type Alias AccessReviewDefaultSettingsGetResponse
      info	[Changelog]   - Added Type Alias AccessReviewDefaultSettingsPutResponse
      info	[Changelog]   - Added Type Alias AccessReviewHistoryDefinitionCreateResponse
      info	[Changelog]   - Added Type Alias AccessReviewHistoryDefinitionInstanceGenerateDownloadUriResponse
      info	[Changelog]   - Added Type Alias AccessReviewHistoryDefinitionInstancesListNextResponse
      info	[Changelog]   - Added Type Alias AccessReviewHistoryDefinitionInstancesListResponse
      info	[Changelog]   - Added Type Alias AccessReviewHistoryDefinitionsGetByIdResponse
      info	[Changelog]   - Added Type Alias AccessReviewHistoryDefinitionsListNextResponse
      info	[Changelog]   - Added Type Alias AccessReviewHistoryDefinitionsListResponse
      info	[Changelog]   - Added Type Alias AccessReviewHistoryDefinitionStatus
      info	[Changelog]   - Added Type Alias AccessReviewInstanceContactedReviewersListNextResponse
      info	[Changelog]   - Added Type Alias AccessReviewInstanceContactedReviewersListResponse
      info	[Changelog]   - Added Type Alias AccessReviewInstanceDecisionsListNextResponse
      info	[Changelog]   - Added Type Alias AccessReviewInstanceDecisionsListResponse
      info	[Changelog]   - Added Type Alias AccessReviewInstanceMyDecisionsGetByIdResponse
      info	[Changelog]   - Added Type Alias AccessReviewInstanceMyDecisionsListNextResponse
      info	[Changelog]   - Added Type Alias AccessReviewInstanceMyDecisionsListResponse
      info	[Changelog]   - Added Type Alias AccessReviewInstanceMyDecisionsPatchResponse
      info	[Changelog]   - Added Type Alias AccessReviewInstanceReviewersType
      info	[Changelog]   - Added Type Alias AccessReviewInstancesAssignedForMyApprovalGetByIdResponse
      info	[Changelog]   - Added Type Alias AccessReviewInstancesAssignedForMyApprovalListNextResponse
      info	[Changelog]   - Added Type Alias AccessReviewInstancesAssignedForMyApprovalListResponse
      info	[Changelog]   - Added Type Alias AccessReviewInstancesCreateResponse
      info	[Changelog]   - Added Type Alias AccessReviewInstancesGetByIdResponse
      info	[Changelog]   - Added Type Alias AccessReviewInstancesListNextResponse
      info	[Changelog]   - Added Type Alias AccessReviewInstancesListResponse
      info	[Changelog]   - Added Type Alias AccessReviewInstanceStatus
      info	[Changelog]   - Added Type Alias AccessReviewRecurrencePatternType
      info	[Changelog]   - Added Type Alias AccessReviewRecurrenceRangeType
      info	[Changelog]   - Added Type Alias AccessReviewResult
      info	[Changelog]   - Added Type Alias AccessReviewReviewerType
      info	[Changelog]   - Added Type Alias AccessReviewScheduleDefinitionReviewersType
      info	[Changelog]   - Added Type Alias AccessReviewScheduleDefinitionsAssignedForMyApprovalListNextResponse
      info	[Changelog]   - Added Type Alias AccessReviewScheduleDefinitionsAssignedForMyApprovalListResponse
      info	[Changelog]   - Added Type Alias AccessReviewScheduleDefinitionsCreateOrUpdateByIdResponse
      info	[Changelog]   - Added Type Alias AccessReviewScheduleDefinitionsGetByIdResponse
      info	[Changelog]   - Added Type Alias AccessReviewScheduleDefinitionsListNextResponse
      info	[Changelog]   - Added Type Alias AccessReviewScheduleDefinitionsListResponse
      info	[Changelog]   - Added Type Alias AccessReviewScheduleDefinitionStatus
      info	[Changelog]   - Added Type Alias AccessReviewScopeAssignmentState
      info	[Changelog]   - Added Type Alias AccessReviewScopePrincipalType
      info	[Changelog]   - Added Type Alias AlertConfigurationPropertiesUnion
      info	[Changelog]   - Added Type Alias AlertConfigurationsGetResponse
      info	[Changelog]   - Added Type Alias AlertConfigurationsListForScopeNextResponse
      info	[Changelog]   - Added Type Alias AlertConfigurationsListForScopeResponse
      info	[Changelog]   - Added Type Alias AlertDefinitionsGetResponse
      info	[Changelog]   - Added Type Alias AlertDefinitionsListForScopeNextResponse
      info	[Changelog]   - Added Type Alias AlertDefinitionsListForScopeResponse
      info	[Changelog]   - Added Type Alias AlertIncidentPropertiesUnion
      info	[Changelog]   - Added Type Alias AlertIncidentsGetResponse
      info	[Changelog]   - Added Type Alias AlertIncidentsListForScopeNextResponse
      info	[Changelog]   - Added Type Alias AlertIncidentsListForScopeResponse
      info	[Changelog]   - Added Type Alias AlertOperationGetResponse
      info	[Changelog]   - Added Type Alias AlertsGetResponse
      info	[Changelog]   - Added Type Alias AlertsListForScopeNextResponse
      info	[Changelog]   - Added Type Alias AlertsListForScopeResponse
      info	[Changelog]   - Added Type Alias AlertsRefreshAllResponse
      info	[Changelog]   - Added Type Alias AlertsRefreshResponse
      info	[Changelog]   - Added Type Alias DecisionResourceType
      info	[Changelog]   - Added Type Alias DecisionTargetType
      info	[Changelog]   - Added Type Alias DefaultDecisionType
      info	[Changelog]   - Added Type Alias OperationsListNextResponse
      info	[Changelog]   - Added Type Alias OperationsListResponse
      info	[Changelog]   - Added Type Alias RecordAllDecisionsResult
      info	[Changelog]   - Added Type Alias ScopeAccessReviewDefaultSettingsGetResponse
      info	[Changelog]   - Added Type Alias ScopeAccessReviewDefaultSettingsPutResponse
      info	[Changelog]   - Added Type Alias ScopeAccessReviewHistoryDefinitionCreateResponse
      info	[Changelog]   - Added Type Alias ScopeAccessReviewHistoryDefinitionInstanceGenerateDownloadUriResponse
      info	[Changelog]   - Added Type Alias ScopeAccessReviewHistoryDefinitionInstancesListNextResponse
      info	[Changelog]   - Added Type Alias ScopeAccessReviewHistoryDefinitionInstancesListResponse
      info	[Changelog]   - Added Type Alias ScopeAccessReviewHistoryDefinitionsGetByIdResponse
      info	[Changelog]   - Added Type Alias ScopeAccessReviewHistoryDefinitionsListNextResponse
      info	[Changelog]   - Added Type Alias ScopeAccessReviewHistoryDefinitionsListResponse
      info	[Changelog]   - Added Type Alias ScopeAccessReviewInstanceContactedReviewersListNextResponse
      info	[Changelog]   - Added Type Alias ScopeAccessReviewInstanceContactedReviewersListResponse
      info	[Changelog]   - Added Type Alias ScopeAccessReviewInstanceDecisionsListNextResponse
      info	[Changelog]   - Added Type Alias ScopeAccessReviewInstanceDecisionsListResponse
      info	[Changelog]   - Added Type Alias ScopeAccessReviewInstancesCreateResponse
      info	[Changelog]   - Added Type Alias ScopeAccessReviewInstancesGetByIdResponse
      info	[Changelog]   - Added Type Alias ScopeAccessReviewInstancesListNextResponse
      info	[Changelog]   - Added Type Alias ScopeAccessReviewInstancesListResponse
      info	[Changelog]   - Added Type Alias ScopeAccessReviewScheduleDefinitionsCreateOrUpdateByIdResponse
      info	[Changelog]   - Added Type Alias ScopeAccessReviewScheduleDefinitionsGetByIdResponse
      info	[Changelog]   - Added Type Alias ScopeAccessReviewScheduleDefinitionsListNextResponse
      info	[Changelog]   - Added Type Alias ScopeAccessReviewScheduleDefinitionsListResponse
      info	[Changelog]   - Added Type Alias SeverityLevel
      info	[Changelog]   - Added Type Alias TenantLevelAccessReviewInstanceContactedReviewersListNextResponse
      info	[Changelog]   - Added Type Alias TenantLevelAccessReviewInstanceContactedReviewersListResponse
      info	[Changelog]   - Interface Permission has a new optional parameter condition
      info	[Changelog]   - Interface Permission has a new optional parameter conditionVersion
      info	[Changelog]   - Added Enum KnownAccessRecommendationType
      info	[Changelog]   - Added Enum KnownAccessReviewActorIdentityType
      info	[Changelog]   - Added Enum KnownAccessReviewApplyResult
      info	[Changelog]   - Added Enum KnownAccessReviewDecisionInsightType
      info	[Changelog]   - Added Enum KnownAccessReviewDecisionPrincipalResourceMembershipType
      info	[Changelog]   - Added Enum KnownAccessReviewHistoryDefinitionStatus
      info	[Changelog]   - Added Enum KnownAccessReviewInstanceReviewersType
      info	[Changelog]   - Added Enum KnownAccessReviewInstanceStatus
      info	[Changelog]   - Added Enum KnownAccessReviewRecurrencePatternType
      info	[Changelog]   - Added Enum KnownAccessReviewRecurrenceRangeType
      info	[Changelog]   - Added Enum KnownAccessReviewResult
      info	[Changelog]   - Added Enum KnownAccessReviewReviewerType
      info	[Changelog]   - Added Enum KnownAccessReviewScheduleDefinitionReviewersType
      info	[Changelog]   - Added Enum KnownAccessReviewScheduleDefinitionStatus
      info	[Changelog]   - Added Enum KnownAccessReviewScopeAssignmentState
      info	[Changelog]   - Added Enum KnownAccessReviewScopePrincipalType
      info	[Changelog]   - Added Enum KnownDecisionResourceType
      info	[Changelog]   - Added Enum KnownDecisionTargetType
      info	[Changelog]   - Added Enum KnownDefaultDecisionType
      info	[Changelog]   - Added Enum KnownRecordAllDecisionsResult
      info	[Changelog]   - Added Enum KnownSeverityLevel
      info	[Changelog]
      info	[Changelog] **Breaking Changes**
      info	[Changelog]
      info	[Changelog]   - Class AuthorizationManagementClient has a new signature
      info	[Changelog]   - Interface RoleManagementPolicyAssignment no longer has parameter effectiveRules
    ️⚠️ azure-resource-manager-schemas warning [Detail]
    • ⚠️Warning [Logs] Generate from 46bcd6b35a259dacfefa1693b3cd30c3e0ccb497. Schema Automation 14.0.0
      command	.sdkauto/initScript.sh ../azure-resource-manager-schemas_tmp/initInput.json ../azure-resource-manager-schemas_tmp/initOutput.json
      warn	File azure-resource-manager-schemas_tmp/initOutput.json not found to read
      command	.sdkauto/generateScript.sh ../azure-resource-manager-schemas_tmp/generateInput.json ../azure-resource-manager-schemas_tmp/generateOutput.json
      warn	No file changes detected after generation
    • ️✔️authorization [View full logs
    ️❌ azure-powershell failed [Detail]
    • Code Generator Failed [Logs] Generate from 46bcd6b35a259dacfefa1693b3cd30c3e0ccb497. SDK Automation 14.0.0
      command	sh ./tools/SwaggerCI/init.sh ../azure-powershell_tmp/initInput.json ../azure-powershell_tmp/initOutput.json
      error	Script return with result [failed] code [2] signal [null] cwd [azure-powershell]: sh ./tools/SwaggerCI/init.sh
      warn	File azure-powershell_tmp/initOutput.json not found to read
      error	Fatal error: ENOENT: no such file or directory, open 'azure-powershell_tmp/generateInput.json'
      ENOENT: no such file or directory, open 'azure-powershell_tmp/generateInput.json'
      Error: ENOENT: no such file or directory, open 'azure-powershell_tmp/generateInput.json'
          at Object.openSync (node:fs:590:3)
          at Object.writeFileSync (node:fs:2202:35)
          at Object.exports.writeTmpJsonFile (/mnt/vss/_work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/utils/fsUtils.js:121:18)
          at workflowCallGenerateScript (/mnt/vss/_work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/workflow.js:474:15)
          at workflowHandleReadmeMdOrTypeSpecProject (/mnt/vss/_work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/workflow.js:205:46)
          at async Object.exports.workflowMain (/mnt/vss/_work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/workflow.js:94:9)
          at async Object.exports.sdkAutoMain (/mnt/vss/_work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/automation/entrypoint.js:191:13)
          at async /mnt/vss/_work/1/a/unified-pipeline-runtime/private/openapi-sdk-automation/lib/cli/cli.js:20:18
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Aug 1, 2023

    Generated ApiView

    Language Package Name ApiView Link
    Swagger Microsoft.Authorization Create ApiView failed. Please ensure your github account in Azure/Microsoft is public and add a comment "/azp run" to re-trigger the CI.
    Go sdk/resourcemanager/authorization/armauthorization Create ApiView failed. Please ensure your github account in Azure/Microsoft is public and add a comment "/azp run" to re-trigger the CI.
    .Net Azure.ResourceManager.Authorization Create ApiView failed. Please ensure your github account in Azure/Microsoft is public and add a comment "/azp run" to re-trigger the CI.
    Java azure-resourcemanager-authorization-generated Create ApiView failed. Please ensure your github account in Azure/Microsoft is public and add a comment "/azp run" to re-trigger the CI.
    JavaScript @azure/arm-authorization Create ApiView failed. Please ensure your github account in Azure/Microsoft is public and add a comment "/azp run" to re-trigger the CI.

    @microsoft-github-policy-service
    Copy link
    Contributor

    Thank you for your contribution tombuildsstuff! We will review the pull request and get back to you soon.

    @microsoft-github-policy-service microsoft-github-policy-service bot added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Aug 1, 2023
    tombuildsstuff added a commit to hashicorp/pandora that referenced this pull request Aug 1, 2023
    @AzureRestAPISpecReview AzureRestAPISpecReview added ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review ARMReview NewApiVersionRequired ReadyForApiTest <valid label in PR review process>add this label when swagger and service APIs are ready for test resource-manager labels Aug 1, 2023
    @openapi-workflow-bot
    Copy link

    Please address or respond to feedback from the ARM API reviewer.
    When you are ready to continue the ARM API review, please remove the ARMChangesRequested label.
    This will notify the reviewer to have another look.
    If the feedback provided needs further discussion, please use this Teams channel to post your questions - aka.ms/azsdk/support/specreview-channel.
    Please include [ARM Query] in the title of your question to indicate that it is ARM-related.

    @openapi-workflow-bot
    Copy link

    Hi @tombuildsstuff! The automation detected this pull request introduces changes to at least one existing API version that violate Azure's versioning policy. To comply with the policy, these changes must be made in a new API version. As a result, the automation added the NewApiVersionRequired label.

    You cannot proceed with merging this PR until you complete one of the following action items:

    ACTION ITEM ALTERNATIVE A: Introduce a new API version.
    Submit a new PR instead of this one, or modify this PR, so that it adds a new API version instead of introducing changes to existing API versions.

    ACTION ITEM ALTERNATIVE B: Request approval.
    Alternatively, if you cannot avoid modifying existing API versions, then you can request an approval for them. Please follow the process described in the High-level Breaking Change Process doc.

    ACTION ITEM ALTERNATIVE C: Report false positive.
    If you think there are no changes in existing API version, i.e. there should be no NewApiVersionRequired label, then proceed as explained in ACTION ITEM ALTERNATIVE B.
    This applies even if the breaking change tool fails with internal runtime error. In such case a manual breaking change review is necessary.

    For additional guidance, please see https://aka.ms/NewApiVersionRequired

    tombuildsstuff added a commit to tombuildsstuff/openapi-diff that referenced this pull request Nov 15, 2023
    …s as a breaking change
    
    Breaking changes happen when the Request payload between one version of the API and
    another version of the API are incompatible - meaning that the minimum viable payload
    from the old API version does not work with the new API version.
    
    In the event of a new Optional field being added to the Request (or Response) payload
    the minimum viable request payload remains valid, therefore provided the field is
    correctly flagged as Required/Optional, we can lean on that to determine whether a
    breaking change is actually a breaking change.
    
    This fixes an issue seen in Azure/azure-rest-api-specs#26680
    and Azure/azure-rest-api-specs#22407 and
    Azure/azure-rest-api-specs#25080 where the API Definition
    doesn't correctly document all of the possible fields within the Request/Response
    payloads.
    
    Since this is going a conditional check, this commit changes this from an Error to a
    Warning - as whilst there are situations where this can be a breaking change; this
    requires understanding the change.
    @konrad-jamrozik konrad-jamrozik added VersioningReviewRequired <valid label in PR review process>add this label when versioning review is required and removed NewApiVersionRequired labels Mar 11, 2024
    Copy link

    Next Steps to Merge

    Next steps that must be taken to merge this PR:
    • ❌ Your PR has at least one change violating Azure versioning policy (label: VersioningReviewRequired). You must introduce a new API version with these changes instead of modifying an existing one. See the PR description for help.
    • ❌ The required check named Swagger BreakingChange has failed. Refer to the check in the PR's 'Checks' tab for details on how to fix it. In addition, refer to step 1 in the PR workflow diagram (even if your PR is for data plane, not ARM).

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review ARMReview CI-BreakingChange-JavaScript customer-reported Issues that are reported by GitHub users external to the Azure organization. ReadyForApiTest <valid label in PR review process>add this label when swagger and service APIs are ready for test resource-manager VersioningReviewRequired <valid label in PR review process>add this label when versioning review is required
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    Issue with Authorization / Role Management Policies / API Version 2020-10-01
    4 participants