src/Generator/InputGeneratorTrait.php
protected function resolveParameter(Reference $parameter)
    {
        return $parameter->resolve(function ($value) {
            if (isset($value->{'in'}) and $value->{'in'} == 'body') {
                return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\BodyParameter');
            }
            if (isset($value->{'in'}) and $value->{'in'} == 'header') {
                return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\HeaderParameterSubSchema');
            }
            if (isset($value->{'in'}) and $value->{'in'} == 'formData') {
                return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\FormDataParameterSubSchema');
            }
            if (isset($value->{'in'}) and $value->{'in'} == 'query') {
                return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\QueryParameterSubSchema');
            }
            if (isset($value->{'in'}) and $value->{'in'} == 'path') {
                return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\PathParameterSubSchema');
            }

            return $value;
        });
    }
protected function resolveParameter(Reference $parameter)
    {
        return $parameter->resolve(function ($value) {
            if (isset($value->{'in'}) and $value->{'in'} == 'body') {
                return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\BodyParameter');
            }
            if (isset($value->{'in'}) and $value->{'in'} == 'header') {
                return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\HeaderParameterSubSchema');
            }
            if (isset($value->{'in'}) and $value->{'in'} == 'formData') {
                return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\FormDataParameterSubSchema');
            }
            if (isset($value->{'in'}) and $value->{'in'} == 'query') {
                return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\QueryParameterSubSchema');
            }
            if (isset($value->{'in'}) and $value->{'in'} == 'path') {
                return $this->getDenormalizer()->denormalize($value, 'Joli\\Jane\\OpenApi\\Model\\PathParameterSubSchema');
            }

            return $value;
        });
    }
@param Reference $parameter

@return BodyParameter|HeaderParameterSubSchema|FormDataParameterSubSchema|QueryParameterSubSchema|PathParameterSubSchema