I making swagger specs and I have an array of objects on my response. How can I remove this error "should NOT have additional properties additionalProperty: oneOf"
acctBals:
type: array
items:
oneOf:
- $ref: '#/definitions/dog'
- $ref: '#/definitions/cat'
- $ref: '#/definitions/lion'
- $ref: '#/definitions/wolf'
- $ref: '#/definitions/tiger'
This is the example object inside the array.
dog:
type: object
properties:
balType:
example: "Example"
type: "string"
curAmt:
type: object
properties:
amt:
example: 11000
type: "number"
curCode:
example: "PHP"
type: "string"
curConvertRule:
example: null
type: "string"
curRate:
example: null
type: "string"