ServerVariable

data class ServerVariable(    val enum: Set<String>,     val default: String,     val description: String?)

An object representing a Server Variable for server URL template substitution.

https://spec.openapis.org/oas/v3.1.0#serverVariableObject

Parameters

enum

An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty.

default

The default value to use for substitution, which SHALL be sent if an alternate value is not supplied.

description

An optional description for the server variable.

Constructors

Link copied to clipboard
fun ServerVariable(    enum: Set<String>,     default: String,     description: String?)

Properties

Link copied to clipboard
val default: String
Link copied to clipboard
val description: String?
Link copied to clipboard
val enum: Set<String>