STRUCT
InvalidInputProblem
Contents
- Properties
metadatamessageslinksrawJsonStringtitletypeerrorDescriptioninvalidFields
 - Methods
init(from:)encode(to:)==(_:_:)
 
public struct InvalidInputProblem: ProblemRepresentation
An error that occurs when an invalid form is submitted.
Properties
metadata
public let metadata: Metadata?
messages
public let messages: [UserMessage]
links
public let links: [Link]
rawJsonString
public let rawJsonString: String?
title
public let title: Message?
type
public let type: ProblemType
errorDescription
public let errorDescription: String?
Description of the error.
invalidFields
public let invalidFields: [InvalidField]
Information about each invalid form field.
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. | 
==(::)
public static func == (lhs: InvalidInputProblem, rhs: InvalidInputProblem) -> Bool
Parameters
| Name | Description | 
|---|---|
| lhs | A value to compare. | 
| rhs | Another value to compare. |