Class: Iglu::SelfDescribingSchema
- Inherits:
-
JSON::Schema::Validator
- Object
- JSON::Schema::Validator
- Iglu::SelfDescribingSchema
- Defined in:
- lib/iglu-client/core.rb
Overview
Custom validator, allowing to use self-describing JSON Schemas
Instance Method Summary collapse
-
#initialize ⇒ SelfDescribingSchema
constructor
A new instance of SelfDescribingSchema.
Constructor Details
#initialize ⇒ SelfDescribingSchema
Returns a new instance of SelfDescribingSchema.
70 71 72 73 74 |
# File 'lib/iglu-client/core.rb', line 70 def initialize super extend_schema_definition("http://json-schema.org/draft-04/schema#") @uri = URI.parse("http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#") end |