Package fr.gouv.vitam.common.json

# Class JsonSchemaValidator

java.lang.Object
fr.gouv.vitam.common.json.JsonSchemaValidator

@Immutable public class JsonSchemaValidator extends Object

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static JsonSchemaValidator`
  `forBuiltInSchema(String schemaFilename)`
  `static JsonSchemaValidator`
  `forUserSchema(String schemaJsonAsString)`
  `void`
  `validateJson(com.fasterxml.jackson.databind.JsonNode jsonNode)`
  Validate a json with a schema

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### forBuiltInSchema

    public static JsonSchemaValidator forBuiltInSchema(String schemaFilename)

  - ### forUserSchema

    public static JsonSchemaValidator forUserSchema(String schemaJsonAsString) throws InvalidJsonSchemaException
    Throws:
      `InvalidJsonSchemaException`

  - ### validateJson

    public void validateJson(com.fasterxml.jackson.databind.JsonNode jsonNode) throws JsonSchemaValidationException
    Validate a json with a schema
    Throws:
      `JsonSchemaValidationException`