Class: SchemaMatcher::ExtendedSchema

Inherits:
JSON::Schema::Draft3
  • 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['$ref'] = ExtendedRefAttribute
  @uri = URI.parse(SCHEMA_URI)
  @names = ['draft3-custom', SCHEMA_URI]
end