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

Removed stagedonly tag and updated the package version #733

Merged
merged 2 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.",
tejaswiMinnu marked this conversation as resolved.
Show resolved Hide resolved
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