We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b4652a6 + 53e6691 commit 1e8990dCopy full SHA for 1e8990d
isp-rules.yaml
@@ -140,8 +140,9 @@ rules:
140
# Errors must include a `detail` field
141
error-detail:
142
severity: error
143
- description: Errors must be problem+JSON and include a "detail" field
144
- given: $..responses.[?(@property.toString().startsWith("4") || @property.toString() === "500")]
+ # 429 returns from the API Gateway, so we exclude it
+ 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")]
146
then:
147
- field: content
148
function: truthy
0 commit comments