Skip to content

OpenAPI_Path

mattpolzin edited this page Jun 13, 2023 · 4 revisions

OpenAPI.Path

OpenAPI Spec "Paths Object" path field pattern support.

public struct Path: RawRepresentable, Equatable, Hashable 

See OpenAPI Paths Object and OpenAPI Patterned Fields.

Inheritance

Decodable, Encodable, Equatable, ExpressibleByStringLiteral, Hashable, RawRepresentable

Initializers

init(_:trailingSlash:)

public init(_ components: [String], trailingSlash: Bool = false) 

init(rawValue:)

public init(rawValue: String) 

init(stringLiteral:)

public init(stringLiteral value: String) 

init(from:)

public init(from decoder: Decoder) throws 

Properties

components

public let components: [String]

trailingSlash

public let trailingSlash: Bool

rawValue

public var rawValue: String 

Methods

encode(to:)

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