Skip to content

OpenAPI_Document_Info_License

mattpolzin edited this page May 23, 2020 · 4 revisions

OpenAPI.Document.Info.License

OpenAPI Spec "License Object"

public struct License: Equatable, CodableVendorExtendable

See OpenAPI License Object.

Inheritance

CodableVendorExtendable, Decodable, Encodable, Equatable

Initializers

init(name:url:vendorExtensions:)

public init(name: String, url: URL? = nil, vendorExtensions: [String: AnyCodable] = [:])

Properties

name

let name: String

url

let url: URL?

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