Class: SimpleJSONSchema::Validator
- Inherits:
-
Object
- Object
- SimpleJSONSchema::Validator
- Defined in:
- lib/simple_json_schema/validator.rb
Constant Summary collapse
- VALIDATORES =
{ 'null' => Validators::Null.new, 'boolean' => Validators::Boolean.new, 'integer' => Validators::Integer.new, 'number' => Validators::Number.new, 'string' => Validators::String.new }.freeze
Class Method Summary collapse
Class Method Details
.validate(scope) ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/simple_json_schema/validator.rb', line 14 def validate(scope) return unless scope.segment? return if validate_ref(scope) Checker.enum(scope) Checker.const(scope) validate_correlations(scope) validate_by_type(scope) end |