Class: JSI::Schema::Issue

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#keywordString

the keyword of the schema that has an issue

Returns:

  • (String)

33
34
# File 'lib/jsi/schema/issue.rb', line 33

class Issue
end

#levelSymbol

:error or :warning

Returns:

  • (Symbol)

33
34
# File 'lib/jsi/schema/issue.rb', line 33

class Issue
end

#messageString

a message describing the issue

Returns:

  • (String)

33
34
# File 'lib/jsi/schema/issue.rb', line 33

class Issue
end

#schemaJSI::Schema

the schema that has an issue

Returns:


33
34
# File 'lib/jsi/schema/issue.rb', line 33

class Issue
end