Azure / autorest.java

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

client, test gen, exclude PolymorphicDiscriminator property from mock data #2726

Closed weidongxu-microsoft closed 2 months ago

weidongxu-microsoft commented 2 months ago

fix https://github.com/Azure/autorest.java/issues/2725

Previously the clientmodel Model does not include PolymorphicDiscriminator property.

tested in https://github.com/Azure/azure-sdk-for-java/pull/39950

we have this mock test in e.g. https://github.com/Azure/autorest.java/blob/main/vanilla-tests/src/test/java/fixtures/bodycomplex/generated/CookiecuttersharkTests.java but we seems not run it.