Packages

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
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SelfSyntaxChecker
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. val SchemaValidatorsConfig: SchemaValidatorsConfig
  2. def validateSchema(schema: Json, maxJsonDepth: Int): ValidatedNel[Message, Unit]

Deprecated Value Members

  1. 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

  2. def validateSchema(schema: Json): ValidatedNel[Message, Unit]
    Annotations
    @deprecated
    Deprecated

    (Since version 0.24.0) Use validateSchema(schema, maxJsonDepth)