From e060dc613d80730faafce1fcd86ec780c8dfec2c Mon Sep 17 00:00:00 2001 From: Dimitri van Hees Date: Wed, 21 Jan 2026 15:58:48 +0100 Subject: [PATCH] DELETE hetzelfde behandelen als GET voor 400 bad request --- linter/spectral.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linter/spectral.yml b/linter/spectral.yml index d1a7d2b..219a389 100644 --- a/linter/spectral.yml +++ b/linter/spectral.yml @@ -216,10 +216,10 @@ rules: #/core/error-handling/invalid-input nlgov:problem-invalid-input: severity: error - message: "GET endpoints that have parameters and all other endpoints must be able to return a 400 response" + message: "GET or DELETE endpoints that have parameters and all other endpoints must be able to return a 400 response" given: - - $.paths..[?( @property.match(/get/) && @.parameters && @.parameters.length > 0 )] - - $.paths..[?( @property.match(/(put)|(post)|(delete)|(patch)/))] + - $.paths..[?( @property.match(/(get)|(delete)/) && @.parameters && @.parameters.length > 0 )] + - $.paths..[?( @property.match(/(put)|(post)|(patch)/))] then: function: schema functionOptions: