I'd like to be able to use this ENUM definition:
goalStatus:
type: string
enum:
- ACTIVE
- COMPLETED
- FULFILLED
- DELETED
... inside of parameter definitions, however, I continue getting errors:
get:
description: Returns all goals for a customer
operationId: listGoals
parameters:
- name: status
in: query
description: filter by goal status
required: false
schema:
$ref: "#/definitions/goalStatus"
The error:
Swagger Error: Not a valid parameter definition