We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4652a6 commit d20ec7eCopy full SHA for d20ec7e
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