Skip to content

Commit 138f98f

Browse files
Update tools/spectral/ipa/rulesets/IPA-108.yaml
Co-authored-by: Yeliz Henden <[email protected]>
1 parent 96fc6ae commit 138f98f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/spectral/ipa/rulesets/IPA-108.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ rules:
2424
##### Implementation details
2525
Rule checks for the following conditions:
2626
- Applies to all DELETE methods
27-
- Verifies that the method includes a 204 response code
27+
- Verifies the 204 No Content response code is present
28+
- Fails if the method lacks a 204 No Content response or defines a different 2xx status code
2829
- Ensures no other 2xx response codes are defined
2930
- Fails if the 204 status code is missing or if other 2xx responses exist
3031
message: '{{error}} https://mdb.link/mongodb-atlas-openapi-validation#xgen-IPA-108-delete-method-return-204-response'

0 commit comments

Comments
 (0)