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
// ClustersRequestBuilder builds and executes requests for operations under \v1\clusterstypeClustersRequestBuilderstruct {
// Path parameters for the requestpathParametersmap[string]string// The request adapter to use to execute the requests.requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter// Url template to use to build the URL for the current request builderurlTemplatestring
}
// ClustersRequestBuilderGetQueryParameters list clusterstypeClustersRequestBuilderGetQueryParametersstruct {
// Filter by provider (for administrators)Provider*string
}
// ClustersRequestBuilderGetRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.typeClustersRequestBuilderGetRequestConfigurationstruct {
// Request headersHeadersmap[string]string// Request optionsOptions []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption// Request query parametersQueryParameters*ClustersRequestBuilderGetQueryParameters
}
I saw that it was requested to is this something that was requested. Not sure it made it to the go implementation
thanks for the update, try out x => x.QueryParameters.Status = new string[] { "pending"} instead. We've made a recent change based on community feedback to group the request configuration (parameters, headers, options) on a single object. #135 (comment)
The text was updated successfully, but these errors were encountered:
Salut @rodcloutier,
Thank you for the interest in Kiota, and for reaching out.
This is a design decision: Query parameters get a generated symbol, headers don't.
To set headers, you can use the Headers field on the the request configuration struct, and pass the request configuration value to the get/post/patch/delete/put method.
All languages abide by this design decision, except for the CLI at this point. Some of the reasons why it was designed like that:
headers can increase the size of the generated code by a lot (they are often used across APIs, like api version, consistency level etc...)
what to do for standard headers that are not described? generate them all?
I hope this clarifies some of the intents, let us know if you have further comments/questions.
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.
The following open api spec does not generate code for the parameter define to be in the headers
Resulting code
I saw that it was requested to is this something that was requested. Not sure it made it to the go implementation
The text was updated successfully, but these errors were encountered: