Class: Iglu::SelfDescribingSchema

Inherits:
JSON::Schema::Validator
  • Object
show all
Defined in:
lib/iglu-client/core.rb

Overview

Custom validator, allowing to use self-describing JSON Schemas

Instance Method Summary collapse

Constructor Details

#initializeSelfDescribingSchema

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