-
Notifications
You must be signed in to change notification settings - Fork 181
JSR 303 - @valid annotation is not getting generated on the List of complex type #361
Comments
@jstoiko Thanks in advance, |
Just back from vacation, looking at it. |
Have you tried the current snapshot ? I've fixed that, I think. |
For the @Valid annotation, I will add it if the list contains an object type or union type (as opposed to a list type or primitive type). String and integers require custom annotations. I know that java 8 supports annotating generic types, but right now, we have to support java 7 and this would be a major change. You could still pull it off with a plugin. |
I've added the @Valid annotation for unions, not sure I've got everything ok for that.
@gr423 , could you try the SNAPSHOT please ? (On branch 3.0.3) |
@jpbelang , Can we expect the same version in maven repository . Thanks and Regards, |
The SNAPSHOTS are on mulesoft's repositories (I don't have them here, I'll get them for you tonight). Building them locally is certainly ok, but if you need to share them between devs, either you upload them to your own repo or point to the mulesoft repo |
Sure, let me try this option.
Thank you
…On Fri, 24 Aug 2018, 11:40 pm JP Belanger, ***@***.***> wrote:
The SNAPSHOTS are on mulesoft's repositories (I don't have them here, I'll
get them for you tonight).
Building them locally is certainly ok, but if you need to share them
between devs, either you upload them to your own repo or point to the
mulesoft repo
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#361 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AfGuzpm9U1cb6kmRpAFH--2lZiqhfnA_ks5uUEGngaJpZM4V9r0E>
.
|
@jpbelang Since our project would go to production by this month end ,i'm not able to proceed with the SNAPSHOT version . Please could you let me know , if can expect the release version some time closer. Or else can you suggest me the alternate, with which i can go ahead doing validations . Thanks in advance , |
I have one bit of the Arrays bug that I need to finish, which I should do tomorrow. I'm trying to release on the week-end. |
Thanks for the update . Regards, |
I've just released 3.0.3. it should come up soon on central. |
@jpbelang Please could you give me some insight here .
|
Hi Team ,
I've the below RAML
Generated Java Objects are as below ,
I'm expecting the @Valid annotation on the metadataSet of event .Which is not getting generated.
And the JsonMapperConfiguration is never considered while generating the code .
includeAdditionalproperties is made false , but still the java objects generated has the field.
Pom File
The text was updated successfully, but these errors were encountered: