From ab49d255d68b58d1fca3ee4dd9243ef8a3a6d8c4 Mon Sep 17 00:00:00 2001 From: Martin Rademacher Date: Wed, 11 Oct 2023 10:43:50 +1300 Subject: [PATCH] Girve `PathItem` the same attribute targets as operations (#1485) --- src/Attributes/PathItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Attributes/PathItem.php b/src/Attributes/PathItem.php index 5ba66587..4ecdd348 100644 --- a/src/Attributes/PathItem.php +++ b/src/Attributes/PathItem.php @@ -8,7 +8,7 @@ use OpenApi\Generator; -#[\Attribute(\Attribute::TARGET_CLASS)] +#[\Attribute(\Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)] class PathItem extends \OpenApi\Annotations\PathItem { /**