Skip to content

OpenAPI_ComponentKey

mattpolzin edited this page Jun 11, 2021 · 5 revisions

OpenAPI.ComponentKey

A key for one of the component dictionaries.

public struct ComponentKey: RawRepresentable, ExpressibleByStringLiteral, Codable, Equatable, Hashable, StringConvertibleHintProvider 

These keys must match the regex ^[a-zA-Z0-9\.\-_]+$.

Inheritance

Codable, Equatable, ExpressibleByStringLiteral, Hashable, RawRepresentable, StringConvertibleHintProvider

Initializers

init(stringLiteral:)

public init(stringLiteral value: StringLiteralType) 

init?(rawValue:)

public init?(rawValue: String) 

init(from:)

public init(from decoder: Decoder) throws 

Properties

rawValue

public let rawValue: String

Methods

problem(with:)

public static func problem(with proposedString: String) -> String? 

encode(to:)

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