Class: VCAP::JsonSchema::BaseSchema
- Inherits:
-
Object
- Object
- VCAP::JsonSchema::BaseSchema
- Defined in:
- lib/vcap/json_schema.rb
Overview
Defines an interface that all schemas must implement
Direct Known Subclasses
Instance Method Summary collapse
-
#validate(dec_json) ⇒ Object
Verfies that val conforms to the schema being validated Throws exceptions derived from ValidationError upon schema violations.
Instance Method Details
#validate(dec_json) ⇒ Object
Verfies that val conforms to the schema being validated Throws exceptions derived from ValidationError upon schema violations
58 59 60 |
# File 'lib/vcap/json_schema.rb', line 58 def validate(dec_json) raise NotImplementedError.new("You must implement validate") end |