From 1ef1f0929afb2f12ac55d9d953e9c4d08d96ee61 Mon Sep 17 00:00:00 2001 From: Abdouni Abdelkarim Date: Wed, 24 Feb 2021 08:56:30 +0100 Subject: [PATCH 1/2] Update Paths.php Hello, i just add a method if we want to remove one or many paths from the docs. --- src/OpenApi/Model/Paths.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/OpenApi/Model/Paths.php b/src/OpenApi/Model/Paths.php index 80829b3d876..d5ac76643dc 100644 --- a/src/OpenApi/Model/Paths.php +++ b/src/OpenApi/Model/Paths.php @@ -31,4 +31,9 @@ public function getPaths(): array { return $this->paths ?? []; } + + public function removePath(string $path) + { + unset($this->paths[$path]); + } } From 38331133bdf369604a05c9817329c6431d4ca26c Mon Sep 17 00:00:00 2001 From: Abdouni Abdelkarim Date: Wed, 24 Feb 2021 09:04:31 +0100 Subject: [PATCH 2/2] Update Paths.php correcting php-cs-fixer --- src/OpenApi/Model/Paths.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OpenApi/Model/Paths.php b/src/OpenApi/Model/Paths.php index d5ac76643dc..02b6ea8d321 100644 --- a/src/OpenApi/Model/Paths.php +++ b/src/OpenApi/Model/Paths.php @@ -31,7 +31,7 @@ public function getPaths(): array { return $this->paths ?? []; } - + public function removePath(string $path) { unset($this->paths[$path]);