From 5f8120d35c9b5adf6135db0883eb4704f7e13e8d Mon Sep 17 00:00:00 2001 From: Tejaswi Salaigari Date: Fri, 6 Sep 2024 13:22:17 -0500 Subject: [PATCH] diabled rules (#740) --- packages/rulesets/generated/spectral/az-arm.js | 3 +++ packages/rulesets/package.json | 2 +- packages/rulesets/src/spectral/az-arm.ts | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/rulesets/generated/spectral/az-arm.js b/packages/rulesets/generated/spectral/az-arm.js index 05674776..3d23960a 100644 --- a/packages/rulesets/generated/spectral/az-arm.js +++ b/packages/rulesets/generated/spectral/az-arm.js @@ -3354,6 +3354,7 @@ const ruleset = { rpcGuidelineCode: "RPC-Policy-V1-03", description: "Properties with type:object that don't reference a model definition are not allowed. ARM doesn't allow generic type definitions as this leads to bad customer experience.", severity: "error", + stagingOnly: true, message: "{{error}}", resolved: true, formats: [oas2], @@ -3674,6 +3675,7 @@ const ruleset = { description: "Every Put and Patch operation must have a request body", message: "{{error}}", severity: "error", + stagingOnly: true, resolved: true, formats: [oas2], given: "$[paths,'x-ms-paths'].*[put,patch].parameters", @@ -3686,6 +3688,7 @@ const ruleset = { description: "A Put operation must return the same schema for 200 and 201 response codes", message: "{{error}}", severity: "error", + stagingOnly: true, resolved: true, formats: [oas2], given: "$.paths.*", diff --git a/packages/rulesets/package.json b/packages/rulesets/package.json index 21ae11b5..68413e39 100644 --- a/packages/rulesets/package.json +++ b/packages/rulesets/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft.azure/openapi-validator-rulesets", - "version": "2.1.1", + "version": "2.1.2", "description": "Azure OpenAPI Validator", "main": "dist/index.js", "scripts": { diff --git a/packages/rulesets/src/spectral/az-arm.ts b/packages/rulesets/src/spectral/az-arm.ts index 0aab7fa3..2505d461 100644 --- a/packages/rulesets/src/spectral/az-arm.ts +++ b/packages/rulesets/src/spectral/az-arm.ts @@ -322,6 +322,7 @@ const ruleset: any = { description: "Properties with type:object that don't reference a model definition are not allowed. ARM doesn't allow generic type definitions as this leads to bad customer experience.", severity: "error", + stagingOnly: true, message: "{{error}}", resolved: true, formats: [oas2], @@ -712,6 +713,7 @@ const ruleset: any = { description: "Every Put and Patch operation must have a request body", message: "{{error}}", severity: "error", + stagingOnly: true, resolved: true, formats: [oas2], given: "$[paths,'x-ms-paths'].*[put,patch].parameters", @@ -726,6 +728,7 @@ const ruleset: any = { description: "A Put operation must return the same schema for 200 and 201 response codes", message: "{{error}}", severity: "error", + stagingOnly: true, resolved: true, formats: [oas2], given: "$.paths.*",