Skip navigation links
org.zalando.problem.spring.web.advice.validation

Interface ValidationAdviceTrait

    • Method Detail

      • defaultConstraintViolationStatus

        default javax.ws.rs.core.Response.StatusType defaultConstraintViolationStatus()
      • formatFieldName

        default String formatFieldName(String fieldName)
        Format the name of a violating field (e.g. lower camel to snake case)
        Parameters:
        fieldName - the field name to format
        Returns:
        the formatted field name, defaults to the parameter, i.e. doesn't apply any transformation
      • newConstraintViolationProblem

        default org.springframework.http.ResponseEntity<org.zalando.problem.Problem> newConstraintViolationProblem(Throwable throwable,
                                                                                                                   Collection<Violation> stream,
                                                                                                                   org.springframework.web.context.request.NativeWebRequest request)

Copyright © 2015–2017 Zalando SE. All rights reserved.