ProblemBuilder
Builds a Problem. Obtain one through problem, which also supplies the Json that encodes the typed payloads handed to extension and extensions. That defaults to ProblemJson unless the caller overrides it.
Properties
The problem type URI (§3.1). Defaults to Problem.ABOUT_BLANK, which is what an absent type member means, so leaving it alone and setting it explicitly produce the same document. The type(ProblemType) overload sets it together with a type's title and status.
Functions
Adds one extension member (§3.2), written as a sibling of the standard members, not nested under an extensions key.
Adds a boolean extension member.
Adds a floating-point extension member.
Adds an integer extension member.
Adds a 64-bit integer extension member.
Adds a string extension member, written quoted. "30" stays a string, not the number 30.
Adds one extension member holding an arbitrary serializable value.
Applies a ProblemType's type URI, title and status in one call.