Skip to content

OpenAPI_Tag

mattpolzin edited this page May 24, 2020 · 4 revisions

OpenAPI.Tag

OpenAPI Spec "Tag Object"

public struct Tag: Equatable, CodableVendorExtendable

See OpenAPI Tag Object.

Inheritance

CodableVendorExtendable, Decodable, Encodable, Equatable, ExpressibleByStringLiteral

Initializers

init(name:description:externalDocs:vendorExtensions:)

public init(name: String, description: String? = nil, externalDocs: ExternalDocumentation? = nil, vendorExtensions: [String: AnyCodable] = [:])

init(stringLiteral:)

public init(stringLiteral: String)

init(from:)

public init(from decoder: Decoder) throws

Properties

name

let name: String

description

let description: String?

externalDocs

let externalDocs: ExternalDocumentation?

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