Annotation Interface ServerVariable
An object representing a Server Variable for server URL template substitution.
-
Required Element Summary
Modifier and TypeRequired ElementDescriptionThe default value of this server variable.The name of this server variable. -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionAn optional description for the server variable.String[]
An array of enum values for this variable.List of extensions to be added to theServerVariable
model corresponding to the containing annotation.
-
Element Details
-
name
String nameThe name of this server variable. This is a REQUIRED property.- Returns:
- the name of the server variable
-
defaultValue
String defaultValueThe default value of this server variable. This is a REQUIRED property.If
enumeration
is set the default value MUST be one of the values inenumeration
.- Returns:
- the default value of this server variable
-
-
-
enumeration
String[] enumerationAn array of enum values for this variable. This field maps to the enum property in the OAS schema and to enumeration field of ServerVariable model.- Returns:
- array of possible values for this ServerVariable
- Default:
- {}
-
description
String descriptionAn optional description for the server variable. CommonMark syntax can be used for rich text representation.- Returns:
- the description of this server variable
- Default:
- ""
-
extensions
Extension[] extensionsList of extensions to be added to theServerVariable
model corresponding to the containing annotation.- Returns:
- array of extensions
- Since:
- 3.1
- Default:
- {}
-