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

App protect cdn 20223 08 01 preview #25197

Closed
wants to merge 2 commits into from

Conversation

neelesh06
Copy link
Contributor

Choose a PR Template

Switch to "Preview" on this description then select one of the choices below.

Click here to open a PR for a Data Plane API.

Click here to open a PR for a Control Plane (ARM) API.

@openapi-pipeline-app
Copy link

openapi-pipeline-app bot commented Aug 7, 2023

Swagger Validation Report

️️✔️BreakingChange succeeded [Detail] [Expand]
There are no breaking changes.
compared swaggers (via Oad v0.10.4)] new version base version
FormRecognizer.json 2022-08-31(c008a71) 2022-08-31(main)
desktopvirtualization.json 2019-01-23-preview(c008a71) 2019-01-23-preview(main)
desktopvirtualization.json 2019-09-24-preview(c008a71) 2019-09-24-preview(main)
desktopvirtualization.json 2019-12-10-preview(c008a71) 2019-12-10-preview(main)
oucontainer.json 2017-06-01(c008a71) 2017-06-01(main)
oucontainer.json 2020-01-01(c008a71) 2020-01-01(main)
domainservices.json 2021-03-01(c008a71) 2021-03-01(main)
oucontainer.json 2021-03-01(c008a71) 2021-03-01(main)
️❌Breaking Change(Cross-Version): 2 Errors, 0 Warnings failed [Detail] The following breaking changes are detected by comparison with the latest stable version:
Rule Message
Runtime Exception "new":"https://github.com/Azure/azure-rest-api-specs/blob/c008a71aebeef195b8ac95fab078ae9d667fe8d2/specification/cdn/resource-manager/Microsoft.Cdn/preview/2023-08-01-preview/afdx.json",
"old":"https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cdn/resource-manager/Microsoft.Cdn/stable/2023-05-01/afdx.json",
"details":"Command failed: node "/mnt/vss/_work/_tasks/AzureApiValidation_5654d05d-82c1-48da-ad8f-161b817f6d41/0.0.57/common/temp/node_modules/.pnpm/@Azure[email protected]/node_modules/autorest/dist/app.js" --v2 --input-file=specification/cdn/resource-manager/Microsoft.Cdn/preview/2023-08-01-preview/afdx.json --output-artifact=swagger-document.json --output-artifact=swagger-document.map --output-file=new --output-folder=/tmp\nERROR: Syntax Error Encountered: Unexpected token in JSON\n - file:///mnt/vss/_work/1/azure-rest-api-specs/specification/cdn/resource-manager/Microsoft.Cdn/preview/2023-08-01-preview/afdx.json:358:2\nERROR: Referenced file 'file:///mnt/vss/_work/1/azure-rest-api-specs/specification/cdn/resource-manager/Microsoft.Cdn/preview/2023-08-01-preview/cdn.json' not found\n - file:///mnt/vss/_work/1/azure-rest-api-specs/specification/cdn/resource-manager/Microsoft.Cdn/preview/2023-08-01-preview/afdx.json:449:10 ($.definitions.SecurityPolicyWebApplicationFirewallParameters.properties.wafPolicy["$ref"])\nFATAL: "


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

Rule Message
Runtime Exception "new":"https://github.com/Azure/azure-rest-api-specs/blob/c008a71aebeef195b8ac95fab078ae9d667fe8d2/specification/cdn/resource-manager/Microsoft.Cdn/preview/2023-08-01-preview/afdx.json",
"old":"https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-11-01-preview/afdx.json",
"details":"Command failed: node "/mnt/vss/_work/_tasks/AzureApiValidation_5654d05d-82c1-48da-ad8f-161b817f6d41/0.0.57/common/temp/node_modules/.pnpm/@Azure[email protected]/node_modules/autorest/dist/app.js" --v2 --input-file=specification/cdn/resource-manager/Microsoft.Cdn/preview/2023-08-01-preview/afdx.json --output-artifact=swagger-document.json --output-artifact=swagger-document.map --output-file=new --output-folder=/tmp\nERROR: Syntax Error Encountered: Unexpected token in JSON\n - file:///mnt/vss/_work/1/azure-rest-api-specs/specification/cdn/resource-manager/Microsoft.Cdn/preview/2023-08-01-preview/afdx.json:358:2\nERROR: Referenced file 'file:///mnt/vss/_work/1/azure-rest-api-specs/specification/cdn/resource-manager/Microsoft.Cdn/preview/2023-08-01-preview/cdn.json' not found\n - file:///mnt/vss/_work/1/azure-rest-api-specs/specification/cdn/resource-manager/Microsoft.Cdn/preview/2023-08-01-preview/afdx.json:449:10 ($.definitions.SecurityPolicyWebApplicationFirewallParameters.properties.wafPolicy["$ref"])\nFATAL: "
️️✔️CredScan succeeded [Detail] [Expand]
There is no credential detected.
️️✔️LintDiff succeeded [Detail]
Rule Message
LintDiffToolException "details":""stack":"ResolverError: Error reading file \"/mnt/vss/_work/1/azure-rest-api-specs/specification/cdn/resource-manager/Microsoft.Cdn/preview/2023-08-01-preview/cdn.json\"\n at onError (/mnt/vss/_work/_tasks/AzureApiValidation_5654d05d-82c1-48da-ad8f-161b817f6d41/0.0.57/common/temp/node_modules/.pnpm/@APIDevTools[email protected]/node_modules/@apidevtools/json-schema-ref-parser/lib/parse.js:92:16)",
"code":"ERESOLVER",
"message":"Error reading file \"/mnt/vss/_work/1/azure-rest-api-specs/specification/cdn/resource-manager/Microsoft.Cdn/preview/2023-08-01-preview/cdn.json\"",
"source":"/mnt/vss/_work/1/azure-rest-api-specs/specification/cdn/resource-manager/Microsoft.Cdn/preview/2023-08-01-preview/cdn.json",
"path":null,
"name":"ResolverError",
"footprint":"null+/mnt/vss/_work/1/azure-rest-api-specs/specification/cdn/resource-manager/Microsoft.Cdn/preview/2023-08-01-preview/cdn.json+ERESOLVER+Error reading file \"/mnt/vss/_work/1/azure-rest-api-specs/specification/cdn/resource-manager/Microsoft.Cdn/preview/2023-08-01-preview/cdn.json\"""
️❌Avocado: 11 Errors, 4 Warnings failed [Detail]
Rule Message
NO_JSON_FILE_FOUND The JSON file is not found but it is referenced from the readme file.
readme: specification/alertsmanagement/resource-manager/readme.md
json: preview/2021-08-08-preview/examples/AlertProcessingRules_Create_or_update_remove_all_action_groups_recurring_maintenance_window.json
UNREFERENCED_JSON_FILE The swagger JSON file is not referenced from the readme file.
readme: specification/cdn/resource-manager/readme.md
json: Microsoft.Cdn/preview/2023-08-01-preview/afdx.json
UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
readme: specification/cdn/resource-manager/readme.md
json: preview/2023-08-01-preview/examples/SecurityPolicies_Create.json
UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
readme: specification/cdn/resource-manager/readme.md
json: preview/2023-08-01-preview/examples/SecurityPolicies_Delete.json
UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
readme: specification/cdn/resource-manager/readme.md
json: preview/2023-08-01-preview/examples/SecurityPolicies_Get.json
UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
readme: specification/cdn/resource-manager/readme.md
json: preview/2023-08-01-preview/examples/SecurityPolicies_ListByProfile.json
UNREFERENCED_JSON_FILE The example JSON file is not referenced from the swagger file.
readme: specification/cdn/resource-manager/readme.md
json: preview/2023-08-01-preview/examples/SecurityPolicies_Patch.json
NO_JSON_FILE_FOUND The JSON file is not found but it is referenced from the readme file.
readme: specification/compute/resource-manager/readme.md
json: 2022-03-01/examples/virtualMachineScaleSetExamples/VirtualMachineScaleSets_ForceRecoveryServiceFabricPlatformUpdateDomainWalk_MinimumSet_Gen.json
NO_JSON_FILE_FOUND The JSON file is not found but it is referenced from the readme file.
readme: specification/cost-management/resource-manager/readme.md
json: CreateOrUpdate/ReservationUtilization/MCA/Customer-AlertRule-ReservedResourceTypeFilter.json
NO_JSON_FILE_FOUND The JSON file is not found but it is referenced from the readme file.
readme: specification/hardwaresecuritymodules/resource-manager/readme.md
json: preview/2022-08-31-preview/examples/CloudHsmClusterPrivateEndpointConnection_ListByCloudHsmCluster_MaximumSet_Gen.json
NO_JSON_FILE_FOUND The JSON file is not found but it is referenced from the readme file.
readme: specification/recoveryservicesbackup/resource-manager/readme.md
json: 2022-06-01-preview/examples/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json
⚠️ MULTIPLE_API_VERSION The default tag contains multiple API versions swaggers.
readme: specification/alertsmanagement/resource-manager/readme.md
tag: specification/alertsmanagement/resource-manager/readme.md#tag-package-2023-03
⚠️ MULTIPLE_API_VERSION The default tag contains multiple API versions swaggers.
readme: specification/automation/resource-manager/readme.md
tag: specification/automation/resource-manager/readme.md#tag-package-2022-08-08
⚠️ MULTIPLE_API_VERSION The default tag contains multiple API versions swaggers.
readme: specification/compute/resource-manager/readme.md
tag: specification/compute/resource-manager/readme.md#tag-package-2023-01-02
⚠️ MULTIPLE_API_VERSION The default tag contains multiple API versions swaggers.
readme: specification/hardwaresecuritymodules/resource-manager/readme.md
tag: specification/hardwaresecuritymodules/resource-manager/readme.md#tag-package-2022-08-preview
️️✔️SwaggerAPIView succeeded [Detail] [Expand]
️️✔️TypeSpecAPIView succeeded [Detail] [Expand]
️❌ModelValidation: 0 Errors, 0 Warnings failed [Detail]
️❌SemanticValidation: 1 Errors, 0 Warnings failed [Detail]
Rule Message
JSON_PARSING_ERROR Json parsing error: unexpected token
JsonUrl: Microsoft.Cdn/preview/2023-08-01-preview/afdx.json#L358:3
️️✔️PoliCheck succeeded [Detail] [Expand]
Validation passed for PoliCheck.
️❌PrettierCheck: 1 Errors, 0 Warnings failed [Detail]
Rule Message
HowToFix Code style issues found
path: Microsoft.Cdn/preview/2023-08-01-preview/afdx.json
️️✔️SpellCheck succeeded [Detail] [Expand]
Validation passes for SpellCheck.
️️✔️Lint(RPaaS) succeeded [Detail]
Rule Message
LintRpaasToolException "details":""stack":"ResolverError: Error reading file \"/mnt/vss/_work/1/azure-rest-api-specs/specification/cdn/resource-manager/Microsoft.Cdn/preview/2023-08-01-preview/cdn.json\"\n at onError (/mnt/vss/_work/_tasks/AzureApiValidation_5654d05d-82c1-48da-ad8f-161b817f6d41/0.0.57/common/temp/node_modules/.pnpm/@APIDevTools[email protected]/node_modules/@apidevtools/json-schema-ref-parser/lib/parse.js:92:16)\n at processTicksAndRejections (internal/process/task_queues.js:95:5)",
"code":"ERESOLVER",
"message":"Error reading file \"/mnt/vss/_work/1/azure-rest-api-specs/specification/cdn/resource-manager/Microsoft.Cdn/preview/2023-08-01-preview/cdn.json\"",
"source":"/mnt/vss/_work/1/azure-rest-api-specs/specification/cdn/resource-manager/Microsoft.Cdn/preview/2023-08-01-preview/cdn.json",
"path":null,
"name":"ResolverError",
"footprint":"null+/mnt/vss/_work/1/azure-rest-api-specs/specification/cdn/resource-manager/Microsoft.Cdn/preview/2023-08-01-preview/cdn.json+ERESOLVER+Error reading file \"/mnt/vss/_work/1/azure-rest-api-specs/specification/cdn/resource-manager/Microsoft.Cdn/preview/2023-08-01-preview/cdn.json\"""
️❌PR Summary: 0 Errors, 0 Warnings failed [Detail]
️️✔️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 7, 2023

Swagger Generation Artifacts

️️✔️ApiDocPreview succeeded [Detail] [Expand]
️❌SDK Breaking Change Tracking failed [Detail]

Only 0 items are rendered, please refer to log for more details.

️❌ azure-sdk-for-net-track2 failed [Detail]

Only 0 items are rendered, please refer to log for more details.

️❌ azure-sdk-for-python-track2 failed [Detail]

Only 0 items are rendered, please refer to log for more details.

️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]

Only 0 items are rendered, please refer to log for more details.

️❌ azure-resource-manager-schemas failed [Detail]

Only 0 items are rendered, please refer to log for more details.

️❌ azure-powershell failed [Detail]

Only 0 items are rendered, please refer to log for more details.

️⚠️ azure-sdk-for-java warning [Detail]

Only 0 items are rendered, please refer to log for more details.

️️✔️ azure-sdk-for-js succeeded [Detail] [Expand]

Only 0 items are rendered, please refer to log for more details.

️️✔️ azure-sdk-for-net succeeded [Detail] [Expand]

Only 0 items are rendered, please refer to log for more details.

Posted by Swagger Pipeline | How to fix these errors?

@openapi-workflow-bot
Copy link

Hi @neelesh06, this service has enabled Service API Toolset. All spec updates MUST be initiated from service ADO project repo, so that to guarantee it to be the source of truth., please review this pull request if it's intentional or reject it if it's not expected. Normally, all the specification or example changes should start with PR created in ADO.

  • You can refer to Service API Toolset Introduction for details.
  • Please contact service focal contacts or Service API Toolset Support Channel if need further help.
  • @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Aug 7, 2023

    Generated ApiView

    Language Package Name ApiView Link
    Go sdk/resourcemanager/alertsmanagement/armalertsmanagement Create ApiView timeout. Package is too large and we cannot create ApiView for it.
    Go sdk/resourcemanager/appcontainers/armappcontainers https://apiview.dev/Assemblies/Review/b0104ffd1ecb42e58a493c72db484333
    Go sdk/resourcemanager/automation/armautomation https://apiview.dev/Assemblies/Review/18553b058e504886a2c55221a2980b67
    Go sdk/resourcemanager/cdn/armcdn https://apiview.dev/Assemblies/Review/3d8825d28c4e4ba0bab747acf55c697a
    Go sdk/resourcemanager/resources/armchanges There is no API change compared with the previous version
    Go sdk/resourcemanager/compute/armcompute There is no API change compared with the previous version
    Go sdk/resourcemanager/cosmos/armcosmos There is no API change compared with the previous version
    Go sdk/resourcemanager/costmanagement/armcostmanagement https://apiview.dev/Assemblies/Review/200558c6259546c5866fb4dd276eaeb8
    Go sdk/resourcemanager/resources/armdeploymentscripts There is no API change compared with the previous version
    Go sdk/resourcemanager/desktopvirtualization/armdesktopvirtualization https://apiview.dev/Assemblies/Review/dac55242cac047e9995026546e69cbc6
    Go sdk/resourcemanager/domainservices/armdomainservices https://apiview.dev/Assemblies/Review/91dbfacd60e9452fa98757718f2add2a
    Go sdk/resourcemanager/resources/armfeatures There is no API change compared with the previous version
    Go sdk/resourcemanager/hardwaresecuritymodules/armhardwaresecuritymodules https://apiview.dev/Assemblies/Review/8a80e85f94b642e5a4c0a70ed46f64ae
    Go sdk/resourcemanager/kusto/armkusto https://apiview.dev/Assemblies/Review/c1310cb5585e48a0841c47a31337b8d4
    Go sdk/resourcemanager/resources/armlinks There is no API change compared with the previous version
    Go sdk/resourcemanager/resources/armlocks There is no API change compared with the previous version
    Go sdk/resourcemanager/resources/armmanagedapplications There is no API change compared with the previous version
    Go sdk/resourcemanager/networkfunction/armnetworkfunction https://apiview.dev/Assemblies/Review/a08da4e31aba414a8ce25dc74b181c0f
    Go sdk/resourcemanager/resources/armpolicy https://apiview.dev/Assemblies/Review/d1cbc61bd4f445d3a2e1ee7a336f2d85
    Go sdk/resourcemanager/recoveryservices/armrecoveryservicesbackup https://apiview.dev/Assemblies/Review/5e87bf6aafcb4acba6d9450bb8793984
    Go sdk/resourcemanager/resources/armresources https://apiview.dev/Assemblies/Review/0bde5e7a4cb447c0bebf4fb69e338b55
    Go sdk/resourcemanager/resources/armsubscriptions There is no API change compared with the previous version
    Go sdk/resourcemanager/resources/armtemplatespecs There is no API change compared with the previous version
    Java azure-resourcemanager-appcontainers https://apiview.dev/Assemblies/Review/6aeac1a6171b45faba539bcd5d77d38e
    .Net Azure.ResourceManager.Automation https://apiview.dev/Assemblies/Review/a949988659ed4531b4224c4d79059225
    .Net Azure.ResourceManager.Cdn https://apiview.dev/Assemblies/Review/56ca97620bc64c59ae492c2431447ff1
    Java azure-resourcemanager-cdn-generated https://apiview.dev/Assemblies/Review/a04e58e4f00e4c38a9811cf4f806cc39
    .Net Azure.ResourceManager.Compute There is no API change compared with the previous version
    .Net Azure.ResourceManager.CosmosDB There is no API change compared with the previous version
    Java azure-resourcemanager-compute-generated https://apiview.dev/Assemblies/Review/308d6092f9d643c1b0d222a531573175
    .Net Azure.ResourceManager.DesktopVirtualization https://apiview.dev/Assemblies/Review/34a2ca76911e42daa7a8c7d7a81a1c9b
    Java azure-resourcemanager-cosmos-generated https://apiview.dev/Assemblies/Review/986950bd98fd459e94541100499a8771
    .Net Azure.ResourceManager.Kusto There is no API change compared with the previous version
    .Net Azure.ResourceManager.RecoveryServicesBackup https://apiview.dev/Assemblies/Review/7adbe18c4f24430aab51c9af39567d07
    Java azure-resourcemanager-desktopvirtualization https://apiview.dev/Assemblies/Review/f46dba2f184041f9af6a160d4403dd85
    .Net Azure.ResourceManager.Resources There is no API change compared with the previous version
    Java azure-resourcemanager-hardwaresecuritymodules https://apiview.dev/Assemblies/Review/dcfb24c91a7041df8d6791ae8616953a
    Java azure-resourcemanager-kusto There is no API change compared with the previous version
    Java azure-resourcemanager-networkfunction https://apiview.dev/Assemblies/Review/001d846b388f48e6bc2ea5014274f90f
    Java azure-resourcemanager-recoveryservicesbackup https://apiview.dev/Assemblies/Review/a614a997906f40a693b557bc417b841e
    Java azure-resourcemanager-resources-generated https://apiview.dev/Assemblies/Review/74fc0c395cbb44338a51ead8060d4225
    JavaScript @azure/arm-appcontainers Create ApiView timeout. Package is too large and we cannot create ApiView for it.
    JavaScript @azure/arm-automation https://apiview.dev/Assemblies/Review/1ca8f03767fd45b4a08245b678d9327c
    JavaScript @azure/arm-cdn https://apiview.dev/Assemblies/Review/d779c0941f37430db896853694a1585c
    JavaScript @azure/arm-changes https://apiview.dev/Assemblies/Review/5e1fb704b89a4aa7b25eb5e7b0f67b19
    JavaScript @azure/arm-compute There is no API change compared with the previous version
    JavaScript @azure/arm-cosmosdb There is no API change compared with the previous version
    JavaScript @azure/arm-desktopvirtualization https://apiview.dev/Assemblies/Review/dc4737b3177e4765b38124f3148c39a5
    JavaScript @azure/arm-domainservices https://apiview.dev/Assemblies/Review/a9b11cee8a424723af8d8671b6a437bf
    JavaScript @azure/arm-features https://apiview.dev/Assemblies/Review/86f45a12e4f24c7d97684770a231d9e7
    JavaScript @azure/arm-kusto There is no API change compared with the previous version
    JavaScript @azure/arm-links https://apiview.dev/Assemblies/Review/3c668438733a4c67bd65b61d284863f0
    JavaScript @azure/arm-locks https://apiview.dev/Assemblies/Review/b0e7b189f0284d40b75ad84b404edddf
    JavaScript @azure/arm-managedapplications https://apiview.dev/Assemblies/Review/6ccbad7a9e6e4cc19a1733b0d2be657c
    JavaScript @azure/arm-networkfunction https://apiview.dev/Assemblies/Review/e89139afc10e4b809b4ed08f6de186da
    JavaScript @azure/arm-policy https://apiview.dev/Assemblies/Review/45072e31f9e94fd3ba7691fad08b7189
    JavaScript @azure/arm-recoveryservicesbackup https://apiview.dev/Assemblies/Review/afe2ea8669e5499fb1696443bd8ef54e
    JavaScript @azure/arm-resources-subscriptions There is no API change compared with the previous version
    JavaScript @azure/arm-resources https://apiview.dev/Assemblies/Review/2ec2f817588c4a8b8025d01e6a80a4aa
    JavaScript @azure/arm-templatespecs https://apiview.dev/Assemblies/Review/e8a8f2a3e0e7439a98b8918e944352b6

    This was referenced Aug 7, 2023
    @mikeharder
    Copy link
    Member

    @neelesh06: Something is wrong with this PR, there are too many changes. Did you have a bad merge or are you targeting the wrong branch?

    @mikeharder mikeharder closed this Aug 7, 2023
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    CI-BreakingChange-Go CI-BreakingChange-JavaScript DoNotMerge <valid label in PR review process> use to hold merge after approval ShiftLeftViolation
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    3 participants