Class: Skooma::Objects::OpenAPI::Keywords::JSONSchemaDialect

Inherits:
JSONSkooma::Keywords::Base
  • Object
show all
Defined in:
lib/skooma/objects/openapi/keywords/json_schema_dialect.rb

Instance Method Summary collapse

Constructor Details

#initialize(parent_schema, value) ⇒ JSONSchemaDialect

Returns a new instance of JSONSchemaDialect.



11
12
13
14
15
16
# File 'lib/skooma/objects/openapi/keywords/json_schema_dialect.rb', line 11

def initialize(parent_schema, value)
  super

  uri = URI.parse(value)
  parent_schema.json_schema_dialect_uri = uri
end