-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Open
Labels
Description
If I'm using this component defintions:
AccountReference:
type: object
properties:
currency:
type: string
AccountReferenceIban:
description: IBAN of an account
allOf:
- $ref: '#/components/schemas/AccountReference'
- type: object
properties:
iban:
type: string
required:
- iban
AccountReferenceBban:
description: Basic Bank Account Number (BBAN) Identifier
allOf:
- $ref: '#/components/schemas/AccountReference'
- type: object
properties:
bban:
type: string
required:
- bban
SinglePayment:
type: object
properties:
endToEndIdentification:
type: string
debtorAccount:
oneOf:
- $ref: "#/components/schemas/AccountReferenceIban"
- $ref: "#/components/schemas/AccountReferenceBban"
I have multiple problems with the generated code:
AccountReferenceIban and AccountReferenceBban doesn't extend AccountReference.
public class AccountReferenceBban {
@ApiModelProperty(value = "")
private String currency;
...
SinglePayment has a
private OneOfAccountReferenceIbanAccountReferenceBban debtorAccount = null;
that refers a non existing class.
Insted it should use the common parent AccountReference.
Reactions are currently unavailable