Class: DescExtendedSchema
- Inherits:
-
JSON::Schema::Validator
- Object
- JSON::Schema::Validator
- DescExtendedSchema
- 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
-
#initialize ⇒ DescExtendedSchema
constructor
A new instance of DescExtendedSchema.
Constructor Details
#initialize ⇒ DescExtendedSchema
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 |