src/Description/Standard/OpenApi/OpenApiParameter.php 1 location
|
@@ 32-35 (lines=4) @@
|
29 |
|
$this->enum = isset($definition->enum) ? $definition->enum : null; |
30 |
|
$this->pattern = isset($definition->pattern) ? $definition->pattern : null; |
31 |
|
|
32 |
|
if ($this->isIn(self::IN_BODY)) { |
33 |
|
$definition->schema = isset($definition->schema) ? $definition->schema : (object)[]; |
34 |
|
$definition->schema->type = 'object'; |
35 |
|
} |
36 |
|
if (isset($definition->schema)) { |
37 |
|
$this->schema = Schema::get($definition->schema); |
38 |
|
} else { |
src/Description/Standard/Raml/RamlParameter.php 1 location
|
@@ 33-36 (lines=4) @@
|
30 |
|
$this->enum = isset($definition->enum) ? $definition->enum : null; |
31 |
|
$this->pattern = isset($definition->pattern) ? $definition->pattern : null; |
32 |
|
|
33 |
|
if ($this->isIn(self::IN_BODY)) { |
34 |
|
$definition->schema = isset($definition->schema) ? $definition->schema : (object)[]; |
35 |
|
$definition->schema->type = 'object'; |
36 |
|
} |
37 |
|
if (isset($definition->schema)) { |
38 |
|
$this->schema = Schema::get($definition->schema); |
39 |
|
} else { |