Class: SchemaMatcher::ExtendedSchema

Inherits:
JSON::Schema::Draft4
  • Object
show all
Defined in:
lib/schema_matcher/extended_schema.rb

Constant Summary collapse

SCHEMA_URI =
'http://tempuri.org/schema_matcher/extended_schema'.freeze

Instance Method Summary collapse

Constructor Details

#initializeExtendedSchema

Returns a new instance of ExtendedSchema.



7
8
9
10
11
12
13
# File 'lib/schema_matcher/extended_schema.rb', line 7

def initialize
  super
  @attributes['type'] = ExtendedTypeAttribute
  @attributes['properties'] = JSON::Schema::PropertiesAttribute
  @uri = URI.parse(SCHEMA_URI)
  @names = ['draft4-custom', SCHEMA_URI]
end