[tcgc] How to generate code with nested properties mappings between sdk method and sdk operation parameters? #2131
Labels
lib:tcgc
Issues for @azure-tools/typespec-client-generator-core library
This is a case we met recently and for template
ArmResourceActionAsync
its second parameter is marked as bodyRoot.With below case1 we have required
body
parameter which is marked as@bodyRoot
and also two optional parameters which is marked as@body
and@query
. In tcgc it would give one method parameter withbody
. And for operation parameters its correspondingMethodParams would not directly link to top-level body but its propertiesbodyParam
andqueryParam
.I have following things to confirm:
@bodyRoot
here?@bodyRoot
as a wrapper object and won't impact the method signiture?Case1
Case2
Case3
Case4
The text was updated successfully, but these errors were encountered: