Skip to content

OpenAPI_Document_Info

mattpolzin edited this page Oct 1, 2020 · 4 revisions

OpenAPI.Document.Info

OpenAPI Spec "Info Object"

public struct Info: Equatable, CodableVendorExtendable

See OpenAPI Info Object.

Inheritance

CodableVendorExtendable, Decodable, Encodable, Equatable

Initializers

init(title:description:termsOfService:contact:license:version:vendorExtensions:)

public init(title: String, description: String? = nil, termsOfService: URL? = nil, contact: Contact? = nil, license: License? = nil, version: String, vendorExtensions: [String: AnyCodable] = [:])

Properties

title

let title: String

description

let description: String?

termsOfService

let termsOfService: URL?

contact

let contact: Contact?

license

let license: License?

version

let version: 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