Class: OpenapiFirst::Schema::ValidationError
- Inherits:
-
Object
- Object
- OpenapiFirst::Schema::ValidationError
- Defined in:
- lib/openapi_first/schema/validation_error.rb
Instance Method Summary collapse
- #details ⇒ Object
- #error ⇒ Object
-
#initialize(json_schemer_error) ⇒ ValidationError
constructor
A new instance of ValidationError.
- #instance_location ⇒ Object
- #schema_location ⇒ Object
- #schemer_error ⇒ Object
- #type ⇒ Object
Constructor Details
#initialize(json_schemer_error) ⇒ ValidationError
Returns a new instance of ValidationError.
6 7 8 |
# File 'lib/openapi_first/schema/validation_error.rb', line 6 def initialize(json_schemer_error) @error = json_schemer_error end |
Instance Method Details
#details ⇒ Object
15 |
# File 'lib/openapi_first/schema/validation_error.rb', line 15 def details = @error['details'] |
#error ⇒ Object
10 |
# File 'lib/openapi_first/schema/validation_error.rb', line 10 def error = @error['error'] |
#instance_location ⇒ Object
12 |
# File 'lib/openapi_first/schema/validation_error.rb', line 12 def instance_location = @error['data_pointer'] |
#schema_location ⇒ Object
13 |
# File 'lib/openapi_first/schema/validation_error.rb', line 13 def schema_location = @error['schema_pointer'] |
#schemer_error ⇒ Object
11 |
# File 'lib/openapi_first/schema/validation_error.rb', line 11 def schemer_error = @error |
#type ⇒ Object
14 |
# File 'lib/openapi_first/schema/validation_error.rb', line 14 def type = @error['type'] |