We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If Dictionary used as query parameters then wrong proxy generated.
Add method to any service:
public virtual async Task<List<AnyDto>> GetSomeAsync([FromQuery] Dictionary<string, string> searchFields) { return new List<AnyDto> = new(); }
some = (searchFields: Record<string, string>, config?: Partial<Rest.Config>) => this.restService.request<any, AnyDto[]>({ method: 'GET', url: '/api/app/my-service/some', params: searchFields, }, { apiName: this.apiName,...config });
some = (searchFields: Record<string, string>, config?: Partial<Rest.Config>) => this.restService.request<any, AnyDto[]>({ method: 'GET', url: '/api/app/my-service/some', params: { searchFields }, }, { apiName: this.apiName,...config });
See params, this cause wrong URL, for example for input {prop: "value"} you will get object=[object] in the URL instead prop=value.
{prop: "value"}
Not sure
No
8.1.1
Angular
EF Core (Default)
None (Default)
Windows (Default)
No response
The text was updated successfully, but these errors were encountered:
It is also generating wrong Proxy for return type that contains Dictionary
public async Task<List<Dictionary<string, string>>> GetFormDocumentNames(string formId)
Generating follwing proxy
getFormDocumentNamesByFormId = (formId: string) => this.restService.request<any, Record<[string, string]>>({})
Sorry, something went wrong.
No branches or pull requests
Is there an existing issue for this?
Description
If Dictionary used as query parameters then wrong proxy generated.
Reproduction Steps
Add method to any service:
Expected behavior
Actual behavior
See params, this cause wrong URL, for example for input
{prop: "value"}
you will get object=[object] in the URL instead prop=value.Regression?
Not sure
Known Workarounds
No
Version
8.1.1
User Interface
Angular
Database Provider
EF Core (Default)
Tiered or separate authentication server
None (Default)
Operation System
Windows (Default)
Other information
No response
The text was updated successfully, but these errors were encountered: