Class: JSI::Schema::Issue
- Inherits:
-
Object
- Object
- JSI::Schema::Issue
- Defined in:
- lib/jsi/schema/issue.rb
Overview
an issue or problem with a schema.
when the level
is :error
, the schema is invalid according to its specification,
violating some "MUST" or "MUST NOT".
when the level
is :warning
, the issue does not mean the schema is invalid, but contains something
that does not make sense. for example, specifying additionalItems
without an adjacent items
has
no effect (in specifications which define additionalItems
), but is not an invalid schema.
Instance Attribute Summary collapse
-
#keyword ⇒ String
the keyword of the schema that has an issue.
-
#level ⇒ Symbol
:error or :warning.
-
#message ⇒ String
a message describing the issue.
-
#schema ⇒ JSI::Schema
the schema that has an issue.
Instance Attribute Details
#keyword ⇒ String
the keyword of the schema that has an issue
33 34 |
# File 'lib/jsi/schema/issue.rb', line 33 class Issue end |
#message ⇒ String
a message describing the issue
33 34 |
# File 'lib/jsi/schema/issue.rb', line 33 class Issue end |
#schema ⇒ JSI::Schema
the schema that has an issue
33 34 |
# File 'lib/jsi/schema/issue.rb', line 33 class Issue end |