Interface IdObjectValidator
-
public interface IdObjectValidatorInterface JSON validation against the schema.- Since:
- 1.0.0
- Author:
- Manoj SP, Swati Raj
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleanvalidateIdObject(String identitySchema, Object identityObject)Validates a identityObject passed with the identity schema provided.booleanvalidateIdObject(String identitySchema, Object identityObject, List<String> requiredFields)Validates a identityObject passed with the identity schema provided.
-
-
-
Method Detail
-
validateIdObject
default boolean validateIdObject(String identitySchema, Object identityObject) throws IdObjectValidationFailedException, IdObjectIOException, InvalidIdSchemaException
Validates a identityObject passed with the identity schema provided.- Parameters:
identitySchema-identityObject-- Returns:
- Throws:
IdObjectValidationFailedExceptionIdObjectIOExceptionInvalidIdSchemaException
-
validateIdObject
boolean validateIdObject(String identitySchema, Object identityObject, List<String> requiredFields) throws IdObjectValidationFailedException, IdObjectIOException, InvalidIdSchemaException
Validates a identityObject passed with the identity schema provided. if validation errors are found then filters error list to ignore missing field errors.- Parameters:
identitySchema-identityObject-ignorableRequiredFields-- Returns:
- Throws:
IdObjectValidationFailedExceptionIdObjectIOExceptionInvalidIdSchemaException
-
-