src/Generator/Parameter/BodyParameterGenerator.php 1 location
|
@@ 84-87 (lines=4) @@
|
81 |
|
list($jsonReference, $resolvedSchema) = $this->resolveSchema($schema, Schema::class); |
82 |
|
} |
83 |
|
|
84 |
|
if ($schema instanceof Schema && $schema->getType() == "array" && $schema->getItems() instanceof Reference) { |
85 |
|
list($jsonReference, $resolvedSchema) = $this->resolveSchema($schema->getItems(), Schema::class); |
86 |
|
$array = true; |
87 |
|
} |
88 |
|
|
89 |
|
if ($resolvedSchema === null) { |
90 |
|
if ($context->getRegistry()->hasClass($reference)) { |
src/Generator/OutputGeneratorTrait.php 1 location
|
@@ 39-46 (lines=8) @@
|
36 |
|
list($jsonReference, $schema) = $this->resolve($schema, Schema::class); |
37 |
|
} |
38 |
|
|
39 |
|
if ($schema instanceof Schema && $schema->getType() == "array") { |
40 |
|
$array = true; |
41 |
|
$jsonReference .= '/items'; |
42 |
|
|
43 |
|
if ($schema->getItems() instanceof Reference) { |
44 |
|
list($jsonReference, ) = $this->resolve($schema->getItems(), Schema::class); |
45 |
|
} |
46 |
|
} |
47 |
|
|
48 |
|
$class = $context->getRegistry()->getClass($jsonReference); |
49 |
|
|