src/Description/Builder/OpenApiBuilder.php 1 location
|
@@ 213-219 (lines=7) @@
|
210 |
|
* |
211 |
|
* @return Response |
212 |
|
*/ |
213 |
|
protected function createResponse(int $code, \stdClass $definition) |
214 |
|
{ |
215 |
|
return new Response( |
216 |
|
$code, |
217 |
|
$this->schemaFactory->create(isset($definition->schema) ? $definition->schema : null) |
218 |
|
); |
219 |
|
} |
220 |
|
|
221 |
|
/** |
222 |
|
* @param \stdClass $definition |
src/Description/Builder/RamlBuilder.php 1 location
|
@@ 148-154 (lines=7) @@
|
145 |
|
return new Parameter($name, $required, $schema, $in); |
146 |
|
} |
147 |
|
|
148 |
|
protected function createResponse(int $code, \stdClass $definition) |
149 |
|
{ |
150 |
|
return new Response( |
151 |
|
$code, |
152 |
|
$this->schemaFactory->create(isset($definition->schema) ? $definition->schema : null) |
153 |
|
); |
154 |
|
} |
155 |
|
|
156 |
|
/** |
157 |
|
* @param \stdClass $definition |