Skip to content

Commit

Permalink
fix(oas-ruleset suite): update va-param-example-required rule (#118)
Browse files Browse the repository at this point in the history
Update va-param-example-required rule given syntax to only check the required property if the
parameter is not null
  • Loading branch information
christineyost authored Feb 16, 2023
1 parent 3405408 commit e143701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/suites/oas-ruleset/validation/ruleset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ rules:
function: truthy
va-param-example-required:
description: Parameters marked as required must have an example or examples property
given: $..*.parameters[?(@.required == true)]
given: $..*.parameters[?(@ && @.required == true)]
severity: error
then:
function: xor
Expand Down

0 comments on commit e143701

Please sign in to comment.