-
Notifications
You must be signed in to change notification settings - Fork 294
Add HttpRequestClientIdPropertyName to HttpRequestApi #7827
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
Add HttpRequestClientIdPropertyName to HttpRequestApi #7827
Conversation
No changes needing a change description found. |
.../generator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/PipelineRequestProvider.cs
Outdated
Show resolved
Hide resolved
...erator/Microsoft.TypeSpec.Generator.ClientModel/src/Providers/Abstractions/HttpRequestApi.cs
Outdated
Show resolved
Hide resolved
@@ -24,5 +24,6 @@ protected HttpRequestApi(CSharpType type, ValueExpression original) : base(type, | |||
public abstract ValueExpression Content(); | |||
public abstract HttpRequestApi FromExpression(ValueExpression original); | |||
public abstract HttpRequestApi ToExpression(); | |||
public abstract string? ClientRequestIdPropertyName { get; } |
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.
why we must put a XXXName
here?
These abstractions should be returning the expressions such as
public abstract ScopedApi<string>? ClientRequestId();
like we have above for Content
- we did not have a HttpRequestContentPropertyName
, instead we made a thing to return the corresponding expression.
We will use a separate visitor instead of adding an additional API. Closing. |
This PR updates the HttpRequestApi to include a new API for setting the RequestClientId property name for http request types.
contributes to Azure/azure-sdk-for-net#50627