Skip to content

JSONReference_Path

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

This path does not start with "#". It starts with a forward slash. By contrast, an InternalReference starts with "#" and is followed by the start of a Path.

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.

public var components: [PathComponent]

description

public var description: String 

rawValue

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