Class RequestSchemaValidator

    • Constructor Detail

      • RequestSchemaValidator

        public RequestSchemaValidator​(Class resourceNodeType,
                                      HttpMethod httpMethod)
    • Method Detail

      • validateAttribute

        protected Optional<com.fasterxml.jackson.databind.JsonNode> validateAttribute​(SchemaAttribute schemaAttribute,
                                                                                      com.fasterxml.jackson.databind.JsonNode attribute)
        validates the attribute in a request context
        Specified by:
        validateAttribute in class AbstractSchemaValidator
        Parameters:
        schemaAttribute - the definition of the attribute that must be validated
        attribute - the attribute to validate
        Returns:
        the validated attribute
      • getValidationContext

        protected ValidationContext getValidationContext()
        the current validation context for the request. If any error occurs the execution must be aborted before the ResourceHandler implementation is called