Azure / autorest.java

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

tsp, fix wire name on header/query/path #2848

Closed weidongxu-microsoft closed 3 months ago

weidongxu-microsoft commented 3 months ago

emitter mainly uses "wire name" for mapping of ModelProperty (the only exception is the request "body").

Currently TCGC getWireName seems only work for JSON property.

Add branch for path/query/header parameter.

The bug likely won't affect existing lib, as it only happens in "alias/spread" + "non-body-property in that alias/spread". But after "spread is spread", one test case is affected. Ref https://github.com/Azure/autorest.java/pull/2821