Git Product home page Git Product logo

Comments (4)

wimdeblauwe avatar wimdeblauwe commented on September 15, 2024 2

Ok, great that you are open to this. Ideally, if there is only a single error message for a single annotation, it would be great if we could just define this in a central way, so that I can skip repeating the message = PROPERTY_SHOULD_NOT_BE_EMPTY argument for each @NotEmpty annotation. (Adding it to have a specific error message as an override should remain possible of course).

from errors-spring-boot-starter.

alimate avatar alimate commented on September 15, 2024

@wimdeblauwe That's right. We've designed this small library to have one error code for each error case. That's why we maintain the error codes inside an instance of a Set.
Anyway, we could evaluate the possibility of this feature to 1.5 release. For example, we can report one error code along with more than one argument describing the related fields.

from errors-spring-boot-starter.

wimdeblauwe avatar wimdeblauwe commented on September 15, 2024

Issue can be closed as I wrote my own library -> https://github.com/wimdeblauwe/error-handling-spring-boot-starter

from errors-spring-boot-starter.

Tazaf avatar Tazaf commented on September 15, 2024

Would it be possible to reopen this issue?

I came accross it recently and, even though I technically can declare a message by error case, it would make much more sense to support multiple error messages for one error type.

This is a little frustrating to see that #105 seems to tick all the boxes but hasn't been merged yet 😞

from errors-spring-boot-starter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.