STRUCT

InvalidInputProblem.InvalidField

Contents

public struct InvalidField: Codable, Equatable

Details about why a form field is invalid.

Properties

name

public let name: String

The name of the invalid field

reason

public let reason: String?

The reason for the field to be invalid

detail

public let detail: Message

Additional details about why the field is invalid

Methods

init(from:)

public init(from decoder: Decoder) throws

Parameters

Name Description
decoder The decoder to read data from.

encode(to:)

public func encode(to encoder: Encoder) throws

Parameters

Name Description
encoder The encoder to write data to.