function queryParam({
  name,
  example,
  schema = { type: 'string' },
  required = false,
  description,
}) {
  const param = { name, in: 'query', required, schema, example, description }
  if (example === null && schema.type === 'boolean') {
    param.allowEmptyValue = true
  }
  return param
}
Helper function for assembling an OpenAPI query parameter object

@param {module:core/base-service/openapi~QueryParamInput} param Input param
@returns {module:core/base-service/openapi~OpenApiParam} OpenAPI Parameter Object
@see https://swagger.io/specification/#parameter-object