Skip to content

support for hierarchies with more than one level, fixes #3474 - #3475

Open
fiore-adrian wants to merge 1 commit into
swagger-api:masterfrom
medallia:issue3474
Open

fiore-adrian wants to merge 1 commit into
swagger-api:masterfrom
medallia:issue3474

Conversation

@fiore-adrian

Copy link
Copy Markdown

No description provided.

@wing328

wing328 commented Aug 1, 2016

Copy link
Copy Markdown
Contributor

@fiore-adrian thanks for the PR. Can you also share a spec for reproducing the issue?

@fiore-adrian

Copy link
Copy Markdown
Author

@wing328 I have opened an issue for this PR. #3474

@wing328

wing328 commented Aug 1, 2016

Copy link
Copy Markdown
Contributor

@fiore-adrian sorry I missed that. Will look into that tomorrow.

@wing328

wing328 commented Aug 1, 2016

Copy link
Copy Markdown
Contributor

cc @cbornet

@arnested

arnested commented Aug 5, 2016

Copy link
Copy Markdown
Contributor

This fixes related problems in the PHP client. If @cbornet doesn't see any problems in this I'll suggest we merge it.

@cbornet

cbornet commented Aug 5, 2016

Copy link
Copy Markdown
Contributor

The problem is that this PR would treat composition as inheritance which is wrong. Also in the issue definition it's not clear if subsubmodel composes submodel or inherits from it. I think it's an issue with the swagger spec itself.
Maybe @fehguy can give its opinion ?

@cbornet

cbornet commented Aug 5, 2016

Copy link
Copy Markdown
Contributor

Imagine the following : B1 has A1 with a discriminator in its allOf. B2 has A2 with a discriminator in its allOf. C has B1 and B2 in its allOf. So shall C extend B1, B2 or neither of them ?

@wing328 wing328 modified the milestones: v2.2.1, v2.3.0 Aug 8, 2016
@cbornet

cbornet commented Aug 9, 2016

Copy link
Copy Markdown
Contributor

The solution here would be to look recursively into the interfaces tree for the discriminator field and set the parent accordingly if any.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants