Class: Kabk::SchemaRenderer
- Inherits:
-
Object
- Object
- Kabk::SchemaRenderer
- Defined in:
- lib/kabk/schema_renderer.rb
Overview
Renders the JSON Schema manifest for the protocol v1.6.0
Instance Method Summary collapse
-
#initialize(system_config: nil, validation_schema_url: nil) ⇒ SchemaRenderer
constructor
Initializes the schema renderer.
- #render ⇒ Object
Constructor Details
#initialize(system_config: nil, validation_schema_url: nil) ⇒ SchemaRenderer
Initializes the schema renderer
12 13 14 15 |
# File 'lib/kabk/schema_renderer.rb', line 12 def initialize(system_config: nil, validation_schema_url: nil) @system_config = system_config ? default_system_config.merge(system_config) : default_system_config @validation_schema_url = validation_schema_url || "/schemas/admin-protocol-1.6.0.json" end |