Metadata

public struct Metadata : Equatable

DecodingError.Metadata provides information about where an DecodingError was thrown in the JSON object graph.

  • Undocumented

    Declaration

    Swift

    public init(path: [String] = [], object: Any, rootObject: Any? = nil)
  • The JSON key path to the object that failed to be decoded

    Declaration

    Swift

    public var path: [String]
  • The JSON object that failed to be decoded

    Declaration

    Swift

    public let object: Any
  • The root JSON object for which the path can be used to find object

    Declaration

    Swift

    public var rootObject: Any?
  • Represents the path to the object that failed decoding with . as a separator.

    Declaration

    Swift

    public var formattedPath: String { get }