@@ -318,30 +318,50 @@ Validation checks the PATCH method for single resource paths and [singleton reso
318318
319319Rule is based on [ http://go/ipa/IPA-108 ] ( http://go/ipa/IPA-108 ) .
320320
321- #### xgen-IPA-108-custom-method-must -be-GET-or-POST
321+ #### xgen-IPA-108-delete-response-should -be-empty
322322
323- ![ error ] ( https://img.shields.io/badge/error-red )
324- The HTTP method for custom methods must be GET or POST .
323+ ![ warn ] ( https://img.shields.io/badge/warning-yellow )
324+ Delete method response should not have schema reference to object .
325325
326326##### Implementation details
327327Rule checks for the following conditions:
328- - Applies only to paths containing custom method identifiers (with colon format)
329- - Verifies the HTTP methods used are either GET or POST
330- - Fails if any other HTTP methods are used (PUT, DELETE, PATCH, etc.)
331- - Fails if multiple valid methods are defined for the same custom method endpoint
328+ - Applies to 204 responses in DELETE methods
329+ - Verifies that the response does not contain a schema property
330+ - Fails if any content type in the response has a defined schema as reference
332331
333- #### xgen-IPA-108-custom -method-must-use-camel-case
332+ #### xgen-IPA-108-delete -method-return-204-response
334333
335- ![ error ] ( https://img.shields.io/badge/error-red )
336- The custom method must use camelCase format .
334+ ![ warn ] ( https://img.shields.io/badge/warning-yellow )
335+ DELETE method must return 204 No Content .
337336
338337##### Implementation details
339338Rule checks for the following conditions:
340- - Applies only to paths containing custom method identifiers (with colon format)
341- - Extracts the method name portion following the colon
342- - Verifies the method name is not empty or blank
343- - Validates that the method name uses proper camelCase formatting
344- - Fails if the method name contains invalid casing (such as snake_case, PascalCase, etc.)
339+ - Applies to all DELETE methods
340+ - Verifies that the method includes a 204 response code
341+ - Ensures no other 2xx response codes are defined
342+ - Fails if the 204 status code is missing or if other 2xx responses exist
343+
344+ #### xgen-IPA-108-delete-include-404-response
345+
346+ ![ warn] ( https://img.shields.io/badge/warning-yellow )
347+ DELETE method must include 404 response and return it when resource not found.
348+
349+ ##### Implementation details
350+ Rule checks for the following conditions:
351+ - Applies to all DELETE methods
352+ - Verifies that the method includes a 404 response code
353+ - Fails if the 404 status code is missing from the responses
354+
355+ #### xgen-IPA-108-delete-request-no-body
356+
357+ ![ warn] ( https://img.shields.io/badge/warning-yellow )
358+ DELETE method must not have request body.
359+
360+ ##### Implementation details
361+ Rule checks for the following conditions:
362+ - Applies to all DELETE methods
363+ - Verifies that the operation object does not contain a requestBody property
364+ - Fails if any requestBody is defined for the DELETE method
345365
346366
347367
0 commit comments