diff --git a/packages/rulesets/generated/spectral/az-arm.js b/packages/rulesets/generated/spectral/az-arm.js index 0d0d8860..d8d77310 100644 --- a/packages/rulesets/generated/spectral/az-arm.js +++ b/packages/rulesets/generated/spectral/az-arm.js @@ -3354,7 +3354,6 @@ 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], @@ -3459,7 +3458,6 @@ const ruleset = { description: "PATCH request body must only contain properties present in the corresponding PUT request body, and must contain at least one property.", message: "{{error}}", severity: "error", - stagingOnly: true, resolved: true, formats: [oas2], given: ["$[paths,'x-ms-paths'].*"], @@ -3675,7 +3673,6 @@ 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", @@ -3688,7 +3685,6 @@ 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.*", @@ -3700,7 +3696,6 @@ const ruleset = { rpcGuidelineCode: "RPC-Put-V1-31", description: "Tags should not be specified in the properties bag for proxy resources. Consider using a Tracked resource instead.", severity: "error", - stagingOnly: true, message: "{{error}}", resolved: true, formats: [oas2], @@ -3866,7 +3861,6 @@ const ruleset = { description: "Extension resources are always considered to be proxy and must not be of the type tracked.", message: "{{error}}", severity: "error", - stagingOnly: true, resolved: true, formats: [oas2], given: "$[paths,'x-ms-paths'].*~", diff --git a/packages/rulesets/package.json b/packages/rulesets/package.json index f672a4df..da593e3c 100644 --- a/packages/rulesets/package.json +++ b/packages/rulesets/package.json @@ -1,6 +1,6 @@ { "name": "@microsoft.azure/openapi-validator-rulesets", - "version": "2.0.10", + "version": "2.1.0", "description": "Azure OpenAPI Validator", "main": "dist/index.js", "scripts": { @@ -86,4 +86,4 @@ "^@stoplight/spectral-ruleset-bundler/(.*)$": "/node_modules/@stoplight/spectral-ruleset-bundler/dist/$1" } } -} +} \ No newline at end of file diff --git a/packages/rulesets/src/spectral/az-arm.ts b/packages/rulesets/src/spectral/az-arm.ts index bf41e6a2..d58a511c 100644 --- a/packages/rulesets/src/spectral/az-arm.ts +++ b/packages/rulesets/src/spectral/az-arm.ts @@ -322,7 +322,6 @@ 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], @@ -460,7 +459,6 @@ const ruleset: any = { "PATCH request body must only contain properties present in the corresponding PUT request body, and must contain at least one property.", message: "{{error}}", severity: "error", - stagingOnly: true, resolved: true, formats: [oas2], given: ["$[paths,'x-ms-paths'].*"], @@ -713,7 +711,6 @@ 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", @@ -728,7 +725,6 @@ 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.*", @@ -742,7 +738,6 @@ const ruleset: any = { rpcGuidelineCode: "RPC-Put-V1-31", description: "Tags should not be specified in the properties bag for proxy resources. Consider using a Tracked resource instead.", severity: "error", - stagingOnly: true, message: "{{error}}", resolved: true, formats: [oas2], @@ -936,7 +931,6 @@ const ruleset: any = { description: "Extension resources are always considered to be proxy and must not be of the type tracked.", message: "{{error}}", severity: "error", - stagingOnly: true, resolved: true, formats: [oas2], given: "$[paths,'x-ms-paths'].*~",