Skip to content

OpenAPI_Tag

mattpolzin edited this page Jun 11, 2021 · 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

public let name: String

description

public let description: String?

externalDocs

public let externalDocs: ExternalDocumentation?

vendorExtensions

Dictionary of vendor extensions.

public 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