Class: OpenapiValidator::ExtendedSchema

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

Instance Method Summary collapse

Constructor Details

#initializeExtendedSchema

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