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