module Jargon::Validator

Overview

Schema validation, usable standalone (without the CLI parser) to check a data hash against a Schema. This is the same engine parse/run apply to parsed arguments.

Defined in:

jargon/validator.cr

Class Method Summary

Class Method Detail

def self.validate(data : Hash(String, JSON::Any), schema : Schema) : Array(String) #

Validate data against a schema. Returns an array of error strings (empty if valid).


[View source]