Open
Description
The problem described in bug
I believe it will be useful if we can omit some properties when using Query attribute.
For example, I have query model:
public class QueryParams
{
[AliasAs("data")]
public string Data { get; set; }
// Some property for internal use only. Should be omitted in any query
public string SomeForInternalUse { get; set; }
}
and some query:
[Post("/api/v1/someEndpoint")]
Task MakeRequestAsync([Query] QueryParams parameters)
I need to ignore property SomeForInternalUse
My proposals:
- Add
[QueryIgnore]
attribute - Alternatively, use [AliasAs(null)] (it works previously and was unknowingly fixed in 1b45219)
Metadata
Assignees
Labels
No labels
Activity