Closed pavelkornev closed 5 months ago
Swagger Editor has a similar rule to check values of consumes array: https://github.com/swagger-api/swagger-editor/blob/249d4f0044d2104fdbe582cf53f27f3538b361d7/src/plugins/validate-semantic/validators/form-data.js#L50-L96
consumes
The difference is that Spectral rule does not fail if consumes array is completely missing which seems to be a mistake.
Checklist
Does this PR introduce a breaking change?
Potentially, it might be a breaking change for those who use this rule as it will though an additional validation issue in this edge case.
@P0lip, where can i find the failing test file? test-harness/tests/examples.oas2/examples.oas2.test.js
test-harness/tests/examples.oas2/examples.oas2.test.js
That'd be https://github.com/stoplightio/spectral/blob/develop/test-harness/scenarios/examples.oas2.scenario
Closing as stale.
Swagger Editor has a similar rule to check values of
consumes
array: https://github.com/swagger-api/swagger-editor/blob/249d4f0044d2104fdbe582cf53f27f3538b361d7/src/plugins/validate-semantic/validators/form-data.js#L50-L96The difference is that Spectral rule does not fail if
consumes
array is completely missing which seems to be a mistake.Checklist
Does this PR introduce a breaking change?
Potentially, it might be a breaking change for those who use this rule as it will though an additional validation issue in this edge case.