Class: JsonSchemaRails::SchemaValidator::Loader

Inherits:
Loaders::Base show all
Defined in:
lib/json_schema_rails/schema_validator.rb

Instance Attribute Summary

Attributes inherited from Loaders::Base

#cache

Instance Method Summary collapse

Methods inherited from Loaders::Base

#cache?, #clear, #load_schema

Constructor Details

#initializeLoader

Returns a new instance of Loader.



78
79
80
# File 'lib/json_schema_rails/schema_validator.rb', line 78

def initialize
  super(cache: false)
end

Instance Method Details

#load_schema!(schema_path) ⇒ Object



82
83
84
# File 'lib/json_schema_rails/schema_validator.rb', line 82

def load_schema!(schema_path)
  load_schema_file(schema_path)
end

#render_schema_content(schema_path) ⇒ Object



86
87
88
# File 'lib/json_schema_rails/schema_validator.rb', line 86

def render_schema_content(schema_path)
  load_schema_content(schema_path)
end