Package fr.gouv.vitam.common.json
Class SchemaValidationUtils
java.lang.Object
fr.gouv.vitam.common.json.SchemaValidationUtils
SchemaValidationUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionextractFieldsFromSchema
(String schemaJsonAsString) Get fields list declared in schema.
-
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
-