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

Inherited properties not respected #248

Closed stojsavljevic closed 6 years ago

stojsavljevic commented 6 years ago

Generated POJOs should properly reflect properties even in case of data type inheritance.

Example:

types: 
  Person:
    type: object
    properties: 
      firstName:
        type: string
        maxLength: 5
  User:
    type: Person
    properties: 
      firstName:
        default: Alex
        minLength: 3
        pattern: ^[a-zA-Z]+$
        description: Some property description
        example: Aleks

Expected result is User.java that handles its own default, minLength and pattern properties. Person.java should define firstName and handle maxLength validation.