Skip to content

ValidationIssue

1 min read

Import: import system.validation;

Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.

ValidationIssue

One input failure; locations use JSON property names and decimal collection indices.

public class ValidationIssue

location

Path to the invalid value, from the outermost field to the failing item.

public location: List<string>

code

Error code identifying the failure.

public code: string

message

Human-readable explanation of the result or failure.

public message: string

constructor

Creates a ValidationIssue with location, code, message.

public constructor(location: List<string>, code: string, message: string)