oapi-codegen icon indicating copy to clipboard operation
oapi-codegen copied to clipboard

AllOf : Only stop when merging schemas with multiple discriminators

Open LelouBil opened this issue 3 years ago • 3 comments

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.

LelouBil avatar Jul 07 '22 10:07 LelouBil

What happened to this pr?

furkankavukcu avatar Nov 29 '23 18:11 furkankavukcu

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.

LelouBil avatar Nov 30 '23 01:11 LelouBil

@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.

jeffmay avatar Jan 25 '24 01:01 jeffmay