Skip to content

allOf not expanded #2

@davebullet

Description

@davebullet

Not all allOf properties are instanced / expanded:

eg. for the following definitions:

personAob:
type: object
allOf:
- $ref: "#/definitions/person"
- type: object
properties:
jobTitle:
type: string
contactAddress:
$ref: "#/definitions/address"
mailingAddress:
$ref: "#/definitions/address"

the person properties are instanced, and so is jobTitle - but contactAddress and mailingAddress are missing from the JSON output. For this definition:

  myPersonOrAob:
    $ref: "#/definitions/personAob"

Only these properties are generated (note missing mailingAddress and contactAddress):

			"myPersonOrAob": {
				"firstName": "enim adipisicing proident pariatur in",
				"middleNames": "est quis occaecat in eiusmod",
				"lastName": "veniam officia incididunt ut",
				"fullName": "in sunt anim",
				"phoneCountryCode": "nulla sunt ut exercitation commodo",
				"phone": "eiusmod non labore",
				"faxCountryCode": "Ut id dolore laboris",
				"fax": "esse sunt sit sed irure",
				"dateOfBirth": "1901-12-13",
				"email": "zFdRBs0P3d@dvqtRSdykBqLxBnDTkhuzGxsYcxLZqRA.zpip",
				"jobTitle": "dolor"
			},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions