@@ 335-337 (lines=3) @@ | ||
332 | protected function resolveParameter(Reference $parameter) |
|
333 | { |
|
334 | return $parameter->resolve(function ($value) { |
|
335 | if (isset($value->{'in'}) and $value->{'in'} == 'body') { |
|
336 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\BodyParameter'); |
|
337 | } |
|
338 | if (isset($value->{'in'}) and $value->{'in'} == 'header') { |
|
339 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\HeaderParameterSubSchema'); |
|
340 | } |
|
@@ 338-340 (lines=3) @@ | ||
335 | if (isset($value->{'in'}) and $value->{'in'} == 'body') { |
|
336 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\BodyParameter'); |
|
337 | } |
|
338 | if (isset($value->{'in'}) and $value->{'in'} == 'header') { |
|
339 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\HeaderParameterSubSchema'); |
|
340 | } |
|
341 | if (isset($value->{'in'}) and $value->{'in'} == 'formData') { |
|
342 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\FormDataParameterSubSchema'); |
|
343 | } |
|
@@ 341-343 (lines=3) @@ | ||
338 | if (isset($value->{'in'}) and $value->{'in'} == 'header') { |
|
339 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\HeaderParameterSubSchema'); |
|
340 | } |
|
341 | if (isset($value->{'in'}) and $value->{'in'} == 'formData') { |
|
342 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\FormDataParameterSubSchema'); |
|
343 | } |
|
344 | if (isset($value->{'in'}) and $value->{'in'} == 'query') { |
|
345 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\QueryParameterSubSchema'); |
|
346 | } |
|
@@ 344-346 (lines=3) @@ | ||
341 | if (isset($value->{'in'}) and $value->{'in'} == 'formData') { |
|
342 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\FormDataParameterSubSchema'); |
|
343 | } |
|
344 | if (isset($value->{'in'}) and $value->{'in'} == 'query') { |
|
345 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\QueryParameterSubSchema'); |
|
346 | } |
|
347 | if (isset($value->{'in'}) and $value->{'in'} == 'path') { |
|
348 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\PathParameterSubSchema'); |
|
349 | } |
|
@@ 347-349 (lines=3) @@ | ||
344 | if (isset($value->{'in'}) and $value->{'in'} == 'query') { |
|
345 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\QueryParameterSubSchema'); |
|
346 | } |
|
347 | if (isset($value->{'in'}) and $value->{'in'} == 'path') { |
|
348 | return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\PathParameterSubSchema'); |
|
349 | } |
|
350 | ||
351 | return $value; |
|
352 | }); |