Skip to content

JSONReference_Path

mattpolzin edited this page May 23, 2020 · 4 revisions

JSONReference.Path

A JSON Reference path.

public struct Path: ExpressibleByArrayLiteral, ExpressibleByStringLiteral, LosslessStringConvertible, RawRepresentable, Equatable, Hashable

As described by the JSON pointer specification and following the URI specification for a "fragment" found in RFC 3986.

Inheritance

Equatable, ExpressibleByArrayLiteral, ExpressibleByStringLiteral, Hashable, LosslessStringConvertible, RawRepresentable

Initializers

init(arrayLiteral:)

public init(arrayLiteral elements: PathComponent)

init(stringLiteral:)

public init(stringLiteral value: String)

init(_:)

public init(_ description: String)

init(rawValue:)

public init(rawValue: String)

Properties

components

The Path's components. In the rawValue, these components are joined with forward slashes '/' per the JSON Reference specification.

var components: [PathComponent]

description

var description: String

rawValue

var rawValue: String
Types
Protocols
Global Functions
Extensions
Clone this wiki locally