Skip to content

Inherited properties not respected #248

@stojsavljevic

Description

@stojsavljevic

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementv2Feature will be implemented in v2.0 only (master branch)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions