ValidationError

data class ValidationError(val target: String? = null, val field: String? = null, val errorMessage: String) : Parcelable

Universal validation error: a problem with a specific object and/or field of the request payload.

A request that fails input validation is rejected as a whole — nothing is executed; validation failures are reported as a list of these errors. What exactly target and field reference is defined by the operation being called — see that operation's documentation.

Constructors

Link copied to clipboard
constructor(target: String? = null, field: String? = null, errorMessage: String)

Properties

Link copied to clipboard
val errorMessage: String

human-readable error description.

Link copied to clipboard
val field: String?

name of the invalid field of that object; null — object-level error.

Link copied to clipboard
val target: String?

key of the object the error refers to; null — operation-level error not tied to a specific object.