Class SchemaValidationUtils

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

public class SchemaValidationUtils extends Object
SchemaValidationUtils
  • Constructor Details

    • SchemaValidationUtils

      public SchemaValidationUtils()
  • Method Details

    • extractFieldsFromSchema

      public static List<String> extractFieldsFromSchema(String schemaJsonAsString) throws InvalidParseOperationException
      Get fields list declared in schema. Only leaf nodes are selected (Vitam Ontology only references leaf nodes. Eg for a complex structure X.Y.Z, only "Z" is returned)
      Parameters:
      schemaJsonAsString - schemaJsonAsString
      Returns:
      a the list of fields declared in the schema
      Throws:
      InvalidParseOperationException