Class: DescExtendedSchema

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

Overview

Registers custom dependencies for Snowplot Self-Describing schema. Contexts and Unstructure events derive from it.

Instance Method Summary collapse

Constructor Details

#initializeDescExtendedSchema

Returns a new instance of DescExtendedSchema.



59
60
61
62
63
64
# File 'lib/snowly/extensions/custom_dependencies.rb', line 59

def initialize
  super
  extend_schema_definition("http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#")
  @attributes["custom_dependencies"] = CustomDependenciesAttribute
  @uri = URI.parse("http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#")
end