Skip to content

OpenAPI_Server

mattpolzin edited this page Sep 28, 2020 · 7 revisions

OpenAPI.Server

OpenAPI Spec "Server Object"

public struct Server: Equatable, CodableVendorExtendable

See OpenAPI Server Object.

Inheritance

CodableVendorExtendable, Decodable, Encodable, Equatable

Initializers

init(url:description:variables:vendorExtensions:)

public init(url: URL, description: String? = nil, variables: OrderedDictionary<String, Variable> = [:], vendorExtensions: [String: AnyCodable] = [:])

init(from:)

public init(from decoder: Decoder) throws

Properties

urlTemplate

let urlTemplate: URLTemplate

description

let description: String?

variables

let variables: OrderedDictionary<String, Variable>

vendorExtensions

Dictionary of vendor extensions.

var vendorExtensions: [String: AnyCodable]

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

Methods

encode(to:)

public func encode(to encoder: Encoder) throws
Types
Protocols
Global Functions
Extensions
Clone this wiki locally