src/Description/Builder/RamlBuilder.php 1 location
|
@@ 150-156 (lines=7) @@
|
147 |
|
return new Parameter($name, $required, $schema, $in); |
148 |
|
} |
149 |
|
|
150 |
|
protected function createResponse(int $code, \stdClass $definition) |
151 |
|
{ |
152 |
|
return new Response( |
153 |
|
$code, |
154 |
|
$this->schemaFactory->create(isset($definition->schema) ? $definition->schema : null) |
155 |
|
); |
156 |
|
} |
157 |
|
|
158 |
|
/** |
159 |
|
* @param \stdClass $definition |
src/Description/Builder/OpenApiBuilder.php 1 location
|
@@ 236-242 (lines=7) @@
|
233 |
|
* |
234 |
|
* @return Response |
235 |
|
*/ |
236 |
|
protected function createResponse(int $code, \stdClass $definition) |
237 |
|
{ |
238 |
|
return new Response( |
239 |
|
$code, |
240 |
|
$this->schemaFactory->create(isset($definition->schema) ? $definition->schema : null) |
241 |
|
); |
242 |
|
} |
243 |
|
|
244 |
|
/** |
245 |
|
* @param \stdClass $definition |