Skip to content

JSONReference_InternalReference

mattpolzin edited this page May 23, 2020 · 6 revisions

JSONReference.InternalReference

public enum InternalReference

Inheritance

Equatable, Hashable, LosslessStringConvertible, RawRepresentable

Initializers

init?(_:)

public init?(_ description: String)

init?(rawValue:)

Create a Reference from a path fragment as defined in RFC 3986.

public init?(rawValue: String)

Important: The string must begin with the '\#' that denotes a URI "fragment" is to follow.

Enumeration Cases

component

The reference refers to a component (i.e. #/components/...).

case component(name: String)

path

The reference refers to some path outside the Components Object.

case path(: Path)

Properties

name

Get the name of the referenced object. Note that if the last path component is an integer, its string representation will be returned. JSON References do not have a way to determine whether that is the name of a property or an index within an array without crawling the JSON path to determine if its parent is an array or an object.

var name: String?

description

var description: String

rawValue

var rawValue: String
Types
Protocols
Global Functions
Extensions

Clone this wiki locally