From 49afd08e5d4b2b57c913dcb6a2cf9bbb94362445 Mon Sep 17 00:00:00 2001 From: Blesswin Samuel Date: Tue, 5 Nov 2024 22:24:10 +0530 Subject: [PATCH] add "restart" to valid POST paths to fix linter --- spectral/functions/validateOpIDNaming.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spectral/functions/validateOpIDNaming.js b/spectral/functions/validateOpIDNaming.js index 80210c8a..8556bfc6 100644 --- a/spectral/functions/validateOpIDNaming.js +++ b/spectral/functions/validateOpIDNaming.js @@ -10,7 +10,7 @@ const GET = ["get", "list"]; const PATCH = ["patch"]; const POST = ["create", "post", "add", "tag", "install", "reset", "upgrade", "recycle", "run", "retry", "validate", "assign", "unassign", "cancel", "list", - "destroy", "delete", "update", "attach", "revert", "commit"]; + "destroy", "delete", "update", "attach", "revert", "commit", "restart"]; const PUT = ["update", "promote", "install"]; const articles = ["_a_", "_an_", "_the_"]