We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For backward compatibility, I need to override the rule "must-always-return-json-objects-as-top-level-data-structures", but only for some operations.
Calling command yarn spectral lint .\swagger.json --ruleset ruleset.yaml gives error must-always-return-json-objects-as-top-level-data-structures for paths./v1/materials/bom.get.responses[200].content.application/json.schema
yarn spectral lint .\swagger.json --ruleset ruleset.yaml
I tried to override this with many attempts in ruleset.yaml, but had no success. extends:
#This section is for turning off rules overrides:
swagger.json
I'm attaching simplified swagger.json.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For backward compatibility, I need to override the rule "must-always-return-json-objects-as-top-level-data-structures", but only for some operations.
Calling command
yarn spectral lint .\swagger.json --ruleset ruleset.yaml
gives error must-always-return-json-objects-as-top-level-data-structures for paths./v1/materials/bom.get.responses[200].content.application/json.schemaI tried to override this with many attempts in ruleset.yaml, but had no success.
extends:
#This section is for turning off rules
overrides:
1v11materials~1bom/get/responses[200]/content/application/json/schema"1v11materials~1bom/get/responses%5B200%5D/content/application/json/schema"1v11materials~1bom/get/responses[200]/content/application/json/schema"1v11materials~1bom/get/responses/[200]/content/application/json/schema"1v11materials~1bom/get/responses/%5B200%5D/content/application/json/schema"1v11materials~1bom/get/responses/[200]/content/application/json/schema"1v11materials~1bom/get/responses[200]..content..schema"1v11materials~1bom/get/responses%5B200%5D..content..schema"1v11materials~1bom/get/responses*/content/*/schema"1v11materials~1bom/get/responses[200]/content/*/schema"1v11materials~1bom/get/responses%5B200%5D/content/*/schema"rules:
must-always-return-json-objects-as-top-level-data-structures: warn
~1 escapes /
%5B escapes [
swagger.json
%5D escapes ]
%7B escapes {
%7D escapes }
I'm attaching simplified swagger.json.
The text was updated successfully, but these errors were encountered: