Skip to content

OpenAPI_Server_Variable

mattpolzin edited this page Oct 1, 2020 · 4 revisions

OpenAPI.Server.Variable

OpenAPI Spec "Server Variable Object"

public struct Variable: Equatable, CodableVendorExtendable

See OpenAPI Server Variable Object.

Inheritance

CodableVendorExtendable, Decodable, Encodable, Equatable

Initializers

init(enum:default:description:vendorExtensions:)

public init(enum: [String] = [], default: String, description: String? = nil, vendorExtensions: [String: AnyCodable] = [:])

Properties

`enum`

var `enum`: [String]

`default`

var `default`: String

description

var description: String?

vendorExtensions

Dictionary of vendor extensions.

var vendorExtensions: [String: AnyCodable]

These should be of the form: [ "x-extensionKey": <anything>] where the values are anything codable.

Types
Protocols
Global Functions
Extensions
Clone this wiki locally