code: def query_param(name, field, required=False):
      
      parameter = build_parameter(field)
      parameter["name"] = name
      parameter["in"] = "query"
      parameter["required"] = False
  
      return swagger.QueryParameterSubSchema(**parameter)
docs: Build a query parameter definition.