Skip to content
Merged
Show file tree
Hide file tree
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
138 changes: 0 additions & 138 deletions tools/spectral/ipa/__tests__/IPA108DeleteMethod404Response.test.js

This file was deleted.

17 changes: 0 additions & 17 deletions tools/spectral/ipa/rulesets/IPA-108.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,6 @@ rules:
then:
function: IPA108DeleteMethod204Response

xgen-IPA-108-delete-include-404-response:
description: |
DELETE method must include 404 response and return it when resource not found.

##### Implementation details
Rule checks for the following conditions:
- Applies to all DELETE methods for single resource endpoints (with path parameters)
- Verifies that the method includes a 404 response code
- Fails if the 404 status code is missing from the responses
- Skips validation for collection endpoints (without path parameters)
message: '{{error}} https://mdb.link/mongodb-atlas-openapi-validation#xgen-IPA-108-delete-include-404-response'
severity: error
given: $.paths[*].delete
then:
function: IPA108DeleteMethod404Response

xgen-IPA-108-delete-request-no-body:
description: |
DELETE method must not have request body.
Expand All @@ -72,4 +56,3 @@ functions:
- IPA108DeleteMethodResponseShouldNotHaveSchema
- IPA108DeleteMethod204Response
- IPA108DeleteMethodNoRequestBody
- IPA108DeleteMethod404Response
12 changes: 0 additions & 12 deletions tools/spectral/ipa/rulesets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -376,18 +376,6 @@ Rule checks for the following conditions:
- Fails if the 204 status code is missing or if other 2xx responses exist
- Skips validation for collection endpoints (without path parameters)

#### xgen-IPA-108-delete-include-404-response

![error](https://img.shields.io/badge/error-red)
DELETE method must include 404 response and return it when resource not found.

##### Implementation details
Rule checks for the following conditions:
- Applies to all DELETE methods for single resource endpoints (with path parameters)
- Verifies that the method includes a 404 response code
- Fails if the 404 status code is missing from the responses
- Skips validation for collection endpoints (without path parameters)

#### xgen-IPA-108-delete-request-no-body

![error](https://img.shields.io/badge/error-red)
Expand Down

This file was deleted.

Loading