Parameter Array - InvalidCastException #3354
Labels
enhancement
New feature or request
generator
Issues or improvements relater to generation capabilities.
WIP
Milestone
Hello,
I am facing the following problem.
Kiota v1.6.1
Description
Backend
I have a backend using AspNetCore's MinimalAPI as shown below:
OpenAPI document
Client
On the client the C# API-client generated by Kiota throws an InvalidCastException, when calling the endpoint described above.
The exception message says: "Unable to cast object of type 'System.Int64' to type 'System.String'."
Workaround
When replacing the
long[]
with astring[]
on the backend and client, it works.As a workaround I convert the
long[]
to astring[]
manually.On the backend I parse the strings.
The text was updated successfully, but these errors were encountered: