kiota
kiota copied to clipboard
Path parameters don't support arrays and maps as input
This OpenAPI fragment
/v2/properties/{properties}:
get:
operationId: v2_getSelectedProperties
parameters:
- name: properties
in: path
required: true
schema:
type: array
items:
type: string
generated the following indexer
public WithPropertiesItemRequestBuilder this[string position] { get {
var urlTplParams = new Dictionary<string, object>(PathParameters);
if (!string.IsNullOrWhiteSpace(position)) urlTplParams.Add("properties", position);
return new WithPropertiesItemRequestBuilder(urlTplParams, RequestAdapter);
} }
The type of the indexer parameter should be string[] and not string.
Thanks for reporting this. Do we need it to be fixed for GA?
No. It is not a common use case.
Moved this to v2 as fixing it will be a breaking change
note: we'd also need to address other types like int etc...