Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allOf not expanded #2

Open
davebullet opened this issue Mar 23, 2017 · 0 comments
Open

allOf not expanded #2

davebullet opened this issue Mar 23, 2017 · 0 comments

Comments

@davebullet
Copy link

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": "[email protected]",
				"jobTitle": "dolor"
			},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant