SchemaViolation

data class SchemaViolation(val location: String, val message: String)

One reason a value did not satisfy its schema.

message never carries a value read from the instance. A renderer turns a validation failure into the error it sends back to the agent, so anything quoted here travels back over the wire — and the values being checked are form fields. not(value: /form/cardNumber) putting a card number in an error message is not a hypothetical; it is a defect that reached review once already. What may be quoted is what the catalog said: an enum's options, a const, a minimum. Those are the renderer's own configuration, not the user's data.

Constructors

Link copied to clipboard
constructor(location: String, message: String)

Properties

Link copied to clipboard

a JSON Pointer to the value inside the instance that was checked.

Link copied to clipboard

Functions

Link copied to clipboard
open override fun toString(): String