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