Skip to content

Commit

Permalink
Removed stagedonly tag and updated the package version (#733)
Browse files Browse the repository at this point in the history
* Removed stagedonly tag and updated the package version

* Update packages/rulesets/package.json

Co-authored-by: Mike Harder <[email protected]>

---------

Co-authored-by: Mike Harder <[email protected]>
  • Loading branch information
tejaswiMinnu and mikeharder committed Aug 26, 2024
1 parent 4e5aa05 commit 3f5b0c2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
6 changes: 0 additions & 6 deletions packages/rulesets/generated/spectral/az-arm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down Expand Up @@ -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'].*"],
Expand Down Expand Up @@ -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",
Expand All @@ -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.*",
Expand All @@ -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],
Expand Down Expand Up @@ -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'].*~",
Expand Down
4 changes: 2 additions & 2 deletions 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.0.10",
"version": "2.1.0",
"description": "Azure OpenAPI Validator",
"main": "dist/index.js",
"scripts": {
Expand Down Expand Up @@ -86,4 +86,4 @@
"^@stoplight/spectral-ruleset-bundler/(.*)$": "<rootDir>/node_modules/@stoplight/spectral-ruleset-bundler/dist/$1"
}
}
}
}
6 changes: 0 additions & 6 deletions packages/rulesets/src/spectral/az-arm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down Expand Up @@ -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'].*"],
Expand Down Expand Up @@ -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",
Expand All @@ -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.*",
Expand All @@ -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],
Expand Down Expand Up @@ -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'].*~",
Expand Down

0 comments on commit 3f5b0c2

Please sign in to comment.