-
Notifications
You must be signed in to change notification settings - Fork 264
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[http-client-csharp]: Fix explode not being properly set for operation params #5396
[http-client-csharp]: Fix explode not being properly set for operation params #5396
Conversation
API change check API changes are not detected in this pull request. |
06693ea
to
d668b75
Compare
d668b75
to
075c152
Compare
packages/http-client-csharp/emitter/src/lib/operation-converter.ts
Outdated
Show resolved
Hide resolved
packages/http-client-csharp/emitter/src/lib/operation-converter.ts
Outdated
Show resolved
Hide resolved
packages/http-client-csharp/emitter/src/lib/operation-converter.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, our definition of the parameter is quite cumbersome - all the parameters are sharing the same InputParameter
model.
We should follow the definition of TCGC (they have discriminated models for each type of parameters) - @m_nash had the vision that our emitter should just redirect the data from TCGC therefore aligning their models on our side should be the first step.
But changing it is extremely complicated and we do not have to do it in this PR.
If you have further questions on how explode works, I think you could offline chat with @tadelesh
…-param-explode
…-param-explode
…-param-explode
…-param-explode
packages/http-client-csharp/emitter/src/lib/operation-converter.ts
Outdated
Show resolved
Hide resolved
packages/http-client-csharp/emitter/src/lib/operation-converter.ts
Outdated
Show resolved
Hide resolved
packages/http-client-csharp/emitter/src/lib/operation-converter.ts
Outdated
Show resolved
Hide resolved
…-param-explode
…-param-explode
This PR fixes an issue where the
explode
flag for a operation parameter was not being properly set when uri templates were specified. This is fixed now by passing through the value ofexplode
from TCGC.There are several follow ups that are still needed to fully support URI templates and path expansion.
fixes: #5134
regen preview for autorest: Azure/azure-sdk-for-net#47775