object SelfSyntaxChecker
Linting self-describing schemas against their meta-schemas
Useful mostly for identifying user-defined properties at a wrong level
and unexpected validation types, i.e. maxLength: "foo"
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SelfSyntaxChecker
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
Deprecated Value Members
-
def
checkMetaSchema(schema: Json): ValidatedNel[Message, Unit]
Validates that a self-describing JSON contains the correct schema keyword.
Validates that a self-describing JSON contains the correct schema keyword.
A previous JSON Schema validator was not able to recognize $$schema keyword, so this was implemented as a workaround. This method will be removed in future versions becuase
SelfSyntaxCheck.validateSchema
encompasses this check.- schema
JSON node with a schema
- returns
linting result
- Annotations
- @deprecated
- Deprecated
(Since version 0.17.0) Use
SelfSyntaxChecker.validateSchema
-
def
validateSchema(schema: Json): ValidatedNel[Message, Unit]
- Annotations
- @deprecated
- Deprecated
(Since version 0.24.0) Use
validateSchema(schema, maxJsonDepth)