You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What are you generating using Kiota, clients or plugins?
API Client/SDK
In what context or format are you using Kiota?
Source Build
Client library/SDK language
CLI
Describe the bug
There seems to be regression failure because of the fix provided for #4615.
Has about 16k errors like this one : error CS0029: Cannot implicitly convert type 'string' to 'string[]'
This is created because parameters of type array is not getting handled correctly.
Example of parameter:
The option created in the Builder command is of type string: var testStringArrayParameterOption = new Option<string>("--test-string-array-parameter", description: "Usage: newParameter=@newParameter") { };
But the query Parameter is of type string[] :
[QueryParameter("testStringArrayParameter")]
public string[]? TestStringArrayParameter { get; set; }
Hence, it unable to assign values during the run time.
Expected behavior
It should create the option of type string[] instead of string
What are you generating using Kiota, clients or plugins?
API Client/SDK
In what context or format are you using Kiota?
Source Build
Client library/SDK language
CLI
Describe the bug
There seems to be regression failure because of the fix provided for #4615.
Has about 16k errors like this one :
error CS0029: Cannot implicitly convert type 'string' to 'string[]'
This is created because parameters of type array is not getting handled correctly.
Example of parameter:
The option created in the Builder command is of type
string
:var testStringArrayParameterOption = new Option<string>("--test-string-array-parameter", description: "Usage: newParameter=@newParameter") { };
But the query Parameter is of type
string[]
:Hence, it unable to assign values during the run time.
Expected behavior
It should create the option of type
string[]
instead ofstring
How to reproduce
Open API description file
Kiota Version
1.14.0
Latest Kiota version known to work for scenario above?(Not required)
No response
Known Workarounds
No response
Configuration
No response
Debug output
No response
Other information
Please refer to #4615 and PR: #4679
The text was updated successfully, but these errors were encountered: