You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed an issue with getting the alphabetical function to work. It seems when a $ref exists in the items to be checked for alphabetization the rule is ignored.
To Reproduce
Using the rules taken directly from this test scenario and a modified version of the OpenAPI document in the same test we are not seeing the failed rule as we should.
my-rules.yaml:
rules:
response-order:
message: Responses should be in alphabetical orderrecommended: truegiven: $.paths.*.*.responsesthen:
function: alphabetical
Alphabetical Ignored When a
$ref
ExistsI noticed an issue with getting the
alphabetical
function to work. It seems when a$ref
exists in the items to be checked for alphabetization the rule is ignored.To Reproduce
Using the rules taken directly from this test scenario and a modified version of the OpenAPI document in the same test we are not seeing the failed rule as we should.
my-rules.yaml:
test-spec.yaml:
CLI command:
We should see the following in our results:
19:15 warning response-order Responses should be in alphabetical order
Environment
The text was updated successfully, but these errors were encountered: