Skip to content

Commit

Permalink
diabled rules (#740)
Browse files Browse the repository at this point in the history
  • Loading branch information
tejaswiMinnu authored Sep 6, 2024
1 parent 6427001 commit 5f8120d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/rulesets/generated/spectral/az-arm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down Expand Up @@ -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",
Expand All @@ -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.*",
Expand Down
2 changes: 1 addition & 1 deletion packages/rulesets/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
3 changes: 3 additions & 0 deletions packages/rulesets/src/spectral/az-arm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down Expand Up @@ -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",
Expand All @@ -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.*",
Expand Down

0 comments on commit 5f8120d

Please sign in to comment.