diff --git a/tools/spectral/.spectral.yaml b/tools/spectral/.spectral.yaml index 6dd2cfc08c..8e5a012fb9 100644 --- a/tools/spectral/.spectral.yaml +++ b/tools/spectral/.spectral.yaml @@ -85,20 +85,6 @@ rules: functionOptions: type: camel - xgen-docs-parameter-examples-or-schema: - message: "No example or schema provided for {{property}}." - description: "Without providing a well defined schema or example(s) an API consumer will have a hard time knowing how to interact with this API." - severity: error - given: "$.paths[*]..parameters[*]" - then: - function: schema - functionOptions: - schema: - anyOf: - - required: ["example"] - - required: ["examples"] - - required: ["schema"] - x-xgen-hidden-env-format: description: "Ensure x-xgen-hidden-env extension has the correct format. https://go/openapi-hidden-extension" severity: error @@ -190,7 +176,3 @@ overrides: - "*.yaml#/components/schemas/tokenFiltertrim" rules: xgen-schema-name-pascal-case: "off" - - files: - - "**#/components/schemas/ApiError/properties/parameters" # see https://github.com/stoplightio/spectral/issues/2592 - rules: - xgen-docs-parameter-examples-or-schema: "off"