Ask Your Question

Revision history [back]

In Swagger, enumerated values refer to a list of allowed constant values for a specific property or parameter. These values are typically defined using the "enum" keyword in the OpenAPI or Swagger specification file. Enumerated values can be of various data types such as string, integer, or boolean. For example, the following is an example of defining enumerated values for a parameter with string data type:

parameters:
  - name: status
    in: query
    type: string
    enum: [active, inactive, suspended]

In this example, the "status" parameter can only have one of the three allowed values: "active", "inactive", or "suspended".