STRUCT

InvalidInputProblem.InvalidField

Contents

public struct InvalidField: Decodable, 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.