Azure / autorest.java

Extension for AutoRest (https://github.com/Azure/autorest) that generates Java code
MIT License
32 stars 80 forks source link

Support multi-level polymorphism #2781

Closed alzimmermsft closed 1 month ago

alzimmermsft commented 1 month ago

Adds support for multi-level polymorphism, only with stream style serialization.

haolingdong-msft commented 1 month ago

The changes look good to me. Would you update the PatchTest to include the multi-level polymorhism case? It can be in this pr or the patch pr https://github.com/Azure/autorest.java/blob/main/typespec-tests/src/test/java/com/cadl/patch/PatchClientTest.java#L123

weidongxu-microsoft commented 1 month ago

One thing, is that I never tried multi-level discriminator from Swagger. I cannot say whether m4 gives the same code-model.