Morning All
Does anyone know how we specify the ENUM values in the API Definition tab where we have defined the Components/Schema Types definitions for the ENUM values to print in the YAML when you tick Publish Open API V3, and then run the the documentation url.
From the guide:
OAS 3 This guide is for OpenAPI 3.0.
Enums
You can use the enum keyword to specify possible values of a request parameter or a model property. For example, the sort parameter in GET /items?sort=[asc|desc] can be described as:
paths:
/items:
get:
parameters:
- in: query
name: sort
description: Sort order
schema:
type: string
enum: [asc, desc]
In YAML, you can also specify one enum value per line:
enum:
- asc
- desc