zio.blocks.openapi.ServerVariable
See theServerVariable companion object
final case class ServerVariable(default: String, enum: Chunk[String] = ..., description: Option[Doc] = ..., extensions: ChunkMap[String, Json] = ...)
Creates a ServerVariable with validation. If enum is non-empty, the default value MUST be one of the enum values.
Value parameters
- default
-
REQUIRED. The default value to use for substitution.
- description
-
An optional description for the server variable.
- enum
-
An enumeration of string values to be used if the substitution options are from a limited set.
- extensions
-
Specification extensions (x-* fields).
Attributes
- Companion
- object
- Source
- OpenAPI.scala
- Graph
-
- Supertypes
Members list
In this article