-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to customise all messages #29
Comments
I all: I have done a path in a new local branch with support for customizable messages, but a I cannot upload it. Here an example: <xsd:schema
/xsd:schema Bye. |
And of course, all this one can be moved to external binding files, I'm on it... |
PR: #43 |
I have found some problems that must be addressed about inline elements (must find parent info) and does not work with external binding, it is necessary to change the plugin code. |
Nice project, it's working well for me.
It would be useful to be able to customise the messages configured. I see that you can configure messages for
@NotNull
annotations, but a more general solution would be nice. In my case, the schema has a lot of@Pattern
annotations, which result in messages likemust match \"[\dA-Z]+\"
, which I can't really display to a user. I'd prefer to say "must be alphanumeric capitals" or something like that (which means something to a user)I would need to be able to provide custom messages for each place where a regex pattern is used, because each instance might be different.
I'm not sure how exactly this would best be configured, but maybe configuring the metadata in the XSD itself using
<annotation/><appinfo/>
elements would be best, similar to the solution here:http://confluence.highsource.org/display/J2B/Inheritance+plugin
The text was updated successfully, but these errors were encountered: