Repository navigation
support for hierarchies with more than one level, fixes #3474 - #3475
fiore-adrian wants to merge 1 commit into
Conversation
|
@fiore-adrian thanks for the PR. Can you also share a spec for reproducing the issue? |
|
@fiore-adrian sorry I missed that. Will look into that tomorrow. |
|
cc @cbornet |
|
This fixes related problems in the PHP client. If @cbornet doesn't see any problems in this I'll suggest we merge it. |
|
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. |
|
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 ? |
|
The solution here would be to look recursively into the interfaces tree for the discriminator field and set the parent accordingly if any. |
No description provided.