-
-
Notifications
You must be signed in to change notification settings - Fork 776
Closed
Labels
Description
Describe the bug 🐞
Previously, I can use AliasAs(null) to mark some properties that shouldn't be included in query parameters. For now (v.7.2.1) it does not work anymore.
Step to reproduce
- Mark some property with attribute AliasAs(null)
public class QueryParams
{
[AliasAs("data")]
public string Data { get; set; }
[AliasAs(null)]
public string SomeForInternalUse { get; set; }
}- Make request like similar
[Post("/api/v1/someEndpoint")]
Task MakeRequestAsync([Query] QueryParams parameters)- Result url will be:
/api/v1/someEndpoint?data=<value>&SomeForInternalUse=<value>Reproduction repository
https://github.com/reactiveui/refit
Expected behavior
The result url should be (and it was previously so)
/api/v1/someEndpoint?data=<value>Screenshots 🖼️
No response
IDE
No response
Operating system
No response
Version
No response
Device
No response
Refit Version
7.2.1
Additional information ℹ️
No response