backbase-openapi-tools icon indicating copy to clipboard operation
backbase-openapi-tools copied to clipboard

Constructor with required attributes is not generated correctly when there is inheritance.

Open jjjasper opened this issue 2 years ago • 0 comments

This issue occurs when the first schema is defined in a "common" spec, or is an existing class, and a second spec refers to the previously generated class using `schemaMapping'

When a class defines a required property

    public AbstractSuperClass(String currency) {
      super();
          this.currency = currency;
    }

then the subclass

    /**
    * Constructor with only required parameters
    */
    public ConcreteSubClass(String currency) {
      super();
    }

jjjasper avatar Oct 03 '23 13:10 jjjasper