[ https://issues.apache.org/jira/browse/ISIS-2741?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Keir Haywood updated ISIS-2741: -------------------------------------- Description: When we have a BigDecimal property with @Digits(10,3) we get a generic message. This should be more suitable, and ideally could be customised. For example: {code:java} @Digits(integer = 10, fraction = 3) // <<<<<<<<<<<< allow the message thrown by this @Property() @Parameter() @Target({ ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER, ElementType.ANNOTATION_TYPE }) @Retention(RetentionPolicy.RUNTIME) public @interface Hours { }{code} was: When we have a BigDecimal property we can see that validation is done to ensure the input is a BigDecimal. What we’d like is a way to make the validation message not say ‘BigDecimal’ but something for less techy people to understand. How can we adjust that message? For example: {code:java} @Digits(integer = 10, fraction = 3) // <<<<<<<<<<<< allow the message thrown by this @Property() @Parameter() @Target({ ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER, ElementType.ANNOTATION_TYPE }) @Retention(RetentionPolicy.RUNTIME) public @interface Hours { }{code} > Show a more appropriate message when invalid BigDecimal shown; ideally allow > it to be customised. > ------------------------------------------------------------------------------------------------- > > Key: ISIS-2741 > URL: https://issues.apache.org/jira/browse/ISIS-2741 > Project: Isis > Issue Type: Improvement > Components: Isis Core > Affects Versions: 2.0.0-M5 > Reporter: Daniel Keir Haywood > Priority: Minor > Fix For: 2.0.0 > > Attachments: screenshot-1.png > > > When we have a BigDecimal property with @Digits(10,3) we get a generic > message. This should be more suitable, and ideally could be customised. > For example: > {code:java} > @Digits(integer = 10, fraction = 3) // <<<<<<<<<<<< allow the message thrown > by this > @Property() > @Parameter() > @Target({ ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER, > ElementType.ANNOTATION_TYPE }) > @Retention(RetentionPolicy.RUNTIME) > public @interface Hours { }{code} -- This message was sent by Atlassian Jira (v8.3.4#803005)