JoobQ::APIValidation::ValidationResult
Inherits JSON::Serializable / Reference / Object
Validation result container
Constructors
new(pull : JSON::PullParser)
Sourcenew(valid : Bool, errors : Array(ValidationError) = [] of ValidationError, data : JSON::Any | Nil = nil)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
add_error(field : String, message : String, value : JSON::Any | Nil = nil, code : String = "validation_error")
Sourcedata
Sourcedata=(value : JSON::Any | Nil)
Sourceerror_response
Sourceerrors
Sourcesuccess?
Sourcevalid
Source