Package fr.gouv.vitam.common.json

# Class SchemaValidationUtils

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

public class SchemaValidationUtils extends Object
SchemaValidationUtils

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SchemaValidationUtils()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static List<String>`
  `extractFieldsFromSchema(String schemaJsonAsString)`
  Get fields list declared in schema.

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

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

- ## 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`