From 7845f0c7f104df9fd5ee92e65113fc660a0e6af8 Mon Sep 17 00:00:00 2001 From: Alexander Rozenvasser Date: Fri, 20 Dec 2024 09:38:23 +0300 Subject: [PATCH 1/2] use FQCN as as short schema name --- src/Model/ModelRegistry.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Model/ModelRegistry.php b/src/Model/ModelRegistry.php index 544b3037e..9f865e5a2 100644 --- a/src/Model/ModelRegistry.php +++ b/src/Model/ModelRegistry.php @@ -195,9 +195,9 @@ private function getTypeShortName(Type $type): string } if (Type::BUILTIN_TYPE_OBJECT === $type->getBuiltinType()) { - $parts = explode('\\', $type->getClassName()); + $parts = array_slice(explode('\\', $type->getClassName()), 2); - return end($parts); + return implode('', $parts); } return $type->getBuiltinType(); From b31def2efbe3f60f4a0c419a5160c54af654af6d Mon Sep 17 00:00:00 2001 From: Alexander Rozenvasser Date: Fri, 20 Dec 2024 10:41:17 +0300 Subject: [PATCH 2/2] rename vendor --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 3ff9ab761..76ea152b8 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "nelmio/api-doc-bundle", + "name": "alexrozz/api-doc-bundle", "description": "Generates documentation for your REST API from annotations and attributes", "keywords": ["api", "documentation", "doc", "rest"], "type": "symfony-bundle",