Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions isp-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,9 @@ rules:
# Errors must include a `detail` field
error-detail:
severity: error
description: Errors must be problem+JSON and include a "detail" field
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
given: $..responses.[?((@property.toString().startsWith("4") || @property.toString() === "500") && @property.toString() != "429")]
then:
- field: content
function: truthy
Expand Down
Loading