PROTOCOL
ProblemRepresentation
public protocol ProblemRepresentation: Codable
A representation of an unsuccessful HAAPI response. This representation is associated with the content-type application/problem+json
(RFC 7807)
Properties
metadata
var metadata: Metadata?
An optional object with additional information about the response. A client may ignore the information present in this object.
type
var type: ProblemType
The type of the problem, which defines the schema for the representation.
title
var title: Message?
The title of the problem.
messages
var messages: [UserMessage]
Messages that should be displayed to users to help them understand the context of an interaction.
links
var links: [Link]
Links that may be used for alternative flows.