Open EdgeLee opened 2 days ago
I've forgot to mention that I tried manually editing the generated Interface to the following:
[System.CodeDom.Compiler.GeneratedCode("Refitter", "1.4.0.0")]
public partial interface IEmployerApi
{
[Multipart]
[Headers("Accept: application/json")]
[Post("/api/employer/updateemployerprofile")]
Task<IApiResponse> UpdateEmployerProfile(string EmployerId, string FirstName, string LastName, StreamPart image);
}
And I was able to get the values on the endpoint. Its just my changes will get overridden from the code gen.
@EdgeLee Thanks for taking the time to report this. Unfortunately, I'm too busy with other things to look into this. If you find a solution yourself and create a pull request, then I will find the time to review and make sure your fix gets merged in and released. Otherwise, this will have to wait a few weeks
Noted sir~ its fine, I just made a custom interface that overrides the base interface for the time being.
Describe the bug Consider the following endpoint using multipart form:
Generated Interface
Noticed only the image parameter is generated but not parameters with [FromForm].
Support Key: 89ljsu/
OpenAPI Specifications
Additional context Ive tried using [FromQuery] and it works as intended.