Interface IBeanValidator<T>


public interface IBeanValidator<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    validate(T bean)
    Checks that the provided bean is valid according to its validation rules.
  • Method Details

    • validate

      void validate(T bean) throws InternalServletException
      Checks that the provided bean is valid according to its validation rules. The provided bean should come from the body of a request that has been serialised into an object according to the OpenAPI specification.
      Parameters:
      bean - an instance of the API bean to validate
      Throws:
      InternalServletException - if the bean is not valid