AllOf : Only stop when merging schemas with multiple discriminators
This is a fix for #666.
It seems to work fine, based on https://github.com/OAI/OpenAPI-Specification/issues/2165 discriminators should be inherited with AllOf, and it can safely be done when only one parent has one.
What happened to this pr?
Well I did this PR because I was working on a projet that required it. Now I'm doing other stuff.
I'm leaving it open because it might be useful but the maintainers didn't seem to notice it.
@jamietanna would it be possible to get this one merged? It seems like it would be more permissive, rather than restrictive, so it shouldn't negatively affect existing users.