struct JSONSchema::ValidationResult

Overview

Captures result of validation, including a status and any number of corresponding errors

Defined in:

validator.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(status : Symbol, errors : Array(JSONSchema::ValidationError) = [] of ValidationError) #

[View source]

Instance Method Detail

def errors : Array(ValidationError) #

[View source]
def status : Symbol #

Either :success or :error


[View source]