Class: OpenapiValidator::ExtendedSchema
- Inherits:
-
JSON::Schema::Draft4
- Object
- JSON::Schema::Draft4
- OpenapiValidator::ExtendedSchema
- Defined in:
- lib/openapi_validator/extended_schema.rb
Instance Method Summary collapse
-
#initialize ⇒ ExtendedSchema
constructor
A new instance of ExtendedSchema.
Constructor Details
#initialize ⇒ ExtendedSchema
Returns a new instance of ExtendedSchema.
8 9 10 11 12 13 14 |
# File 'lib/openapi_validator/extended_schema.rb', line 8 def initialize super @attributes["type"] = TypeAttribute @attributes["required"] = RequiredAttribute @uri = URI.parse("http://example.com/extended_schema") @names = ["http://example.com/extended_schema"] end |