Exception: JsonSchema::MissingSchema
- Inherits:
-
StandardError
- Object
- StandardError
- JsonSchema::MissingSchema
- Defined in:
- lib/json_schema/missing_schema.rb
Instance Method Summary collapse
-
#initialize(missing_key, keys) ⇒ MissingSchema
constructor
A new instance of MissingSchema.
- #message ⇒ Object
Constructor Details
#initialize(missing_key, keys) ⇒ MissingSchema
Returns a new instance of MissingSchema.
5 6 7 8 |
# File 'lib/json_schema/missing_schema.rb', line 5 def initialize(missing_key, keys) @missing_key = missing_key @keys = keys end |
Instance Method Details
#message ⇒ Object
10 11 12 13 |
# File 'lib/json_schema/missing_schema.rb', line 10 def "schema <#{@missing_key.inspect}> not found." \ " schemas: #{@keys.sort.inspect}" end |