Fixed generation of parameters with $ref schema