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