Skip to content

Commit 53e6691

Browse files
committed
wrap entire qualifying statement for error description
1 parent d20ec7e commit 53e6691

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

isp-rules.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ rules:
142142
severity: error
143143
# 429 returns from the API Gateway, so we exclude it
144144
description: Errors must be problem+JSON or text/plain and include a "detail" field
145-
given: $..responses.[?(@property.toString().startsWith("4") || @property.toString() === "500") && @property.toString() != "429"]
145+
given: $..responses.[?((@property.toString().startsWith("4") || @property.toString() === "500") && @property.toString() != "429")]
146146
then:
147147
- field: content
148148
function: truthy

0 commit comments

Comments
 (0)