Class: RootExtendedSchema

Inherits:
JSON::Schema::Validator
  • Object
show all
Defined in:
lib/snowly/extensions/custom_dependencies.rb

Overview

Registers custom dependencies for Draft-4. This used when evaluating the protocol schema snowly/schemas/snowplow_protocol.json

Instance Method Summary collapse

Constructor Details

#initializeRootExtendedSchema



48
49
50
51
52
53
# File 'lib/snowly/extensions/custom_dependencies.rb', line 48

def initialize
  super
  extend_schema_definition("http://json-schema.org/draft-04/schema#")
  @attributes["custom_dependencies"] = CustomDependenciesAttribute
  @uri = URI.parse("http://json-schema.org/draft-04/schema")
end