API Client does not set field name correctly in [FromForm] requests contains list
Author: RezaBagheri8Created Mar 5, 2025Updated Sep 23, 2026
Labelsenhancementpackage: @scalar/api-client
What happens?
i am developing an asp.net core web api project with .net 9 I am using Scalar.AspNetCore version: 2.0.23
I have an endpoint with [FromForm] input
the input is UpdateTechnicianCertificatesDto:
my action code is:
when I want to test the endpoint the scalar show me this request:
but when I send the request with correct values, asp.net core gives me 400 bad request error:
but when I remove the brackets next to field names the request sends correctly:
What did you expect to happen?
i expected the scalar to generate correct request input in multipart/form-data requests
OpenAPI Document
No response
Source: scalar/scalar