From c11bc34f9ffb9c849c8e07aecdf03e504b369929 Mon Sep 17 00:00:00 2001 From: VijayKesharwani <122533719+VijayKesharwani@users.noreply.github.com> Date: Mon, 20 Nov 2023 17:54:37 +0530 Subject: [PATCH] Update .spectral-oas.yml --- .spectral-oas.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.spectral-oas.yml b/.spectral-oas.yml index abf10712f9..ab628fae02 100644 --- a/.spectral-oas.yml +++ b/.spectral-oas.yml @@ -75,3 +75,12 @@ rules: function: pattern functionOptions: match: 3.0.3 + camara-path-param-id: + message: Path parameter names should be "resource_id", not just "id" + severity: warn + given: "$..parameters[?(@.in == 'path')]" + then: + field: name + function: pattern + functionOptions: + notMatch: \b(id|Id|ID|iD)\b