phoenixnap / springmvc-raml-plugin

Spring MVC - RAML Spec Synchroniser Plugin. A Maven plugin designed to Generate Server & Client code in Spring from a RAML API descriptor and conversely, a RAML API document from the SpringMVC Server implementation.
Apache License 2.0
136 stars 84 forks source link

@Valid annotation is not generated for properties with complex object type #224

Closed ivan-mladenovic closed 6 years ago

ivan-mladenovic commented 6 years ago

If you have following situation:

#%RAML 1.0 Library

types:
  Item:
    type: object
    properties: 
      id: integer
      name: string 
  Product:
    type: object
    properties: 
      id: number
      name: string
      items:
        type: Item[]  

@Valid annotation is not generated on Product -> items property. As consequence, default validation is not triggered.

Please let me know if you need additional details.