-
I have an endpoint that requires some properties, one of which is IFormFile. i.e
Without the IFormFile, Kiota generates a request model with properties and their respective type. (I believe asp.net/swaggergen defaults to However, once we change to Is there a way to expose the request model instead of MultiPartBody (with IFormFile support), via config, correct swaggergen attributes, etc? I have looked at this -> The biggest issue we have at the moment is the complexity of handling our |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @AndrewL97 |
Beta Was this translation helpful? Give feedback.
Thanks for sharing this. I'm not sure why the FromForm attribute results in the description splitting the schema here. IMHO it should be identical to the description of WithFile endpoint. Maybe worth having @captainsafia take a look at that.
As for your initial question, using the multipart body object, you should be able to add parsable body parts with the add or replace part method. (i.e. just add your model value with application/json as the media type and the property name (casing needs to match) as the part name)