We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93c4807 commit f583c4fCopy full SHA for f583c4f
src/OpenApi/SchemaDefinition/Entity/EntityAdapter.php
@@ -147,6 +147,13 @@ protected function getProperties(string $type): array
147
if ($propertyType === $type) {
148
$propertyType = 'object';
149
}
150
+ if (str_ends_with($propertyType, '[]')) {
151
+ $subType = Strings::replace($propertyType, '#\\[\\]#', '');
152
+
153
+ if ($subType === $type) {
154
+ $propertyType = 'object';
155
+ }
156
157
158
$data[$property->getName()] = $this->getMetadata($propertyType);
159
0 commit comments