-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
request configuration lack a default implementation #178
Comments
@baywet for clarity on this issue we do have an implementation of the request configuration. To instantiate a request configuration with no query parameters requestConfig := &RequestConfiguration[DefaultQueryParameters]{} could you kindly add some clarity |
Sorry about the confusing issue. I'm having difficulties remembering myself. It was either:
I guess what I was trying to do is to disable the compression for a single request, which didn't have any query parameters, and that should be doable via. requestConfig := &RequestConfiguration[DefaultQueryParameters]{
Options: [NewCompressionOption()]
}
client.Foo().Bar().Get(context, requestConfig) (or something like that) I guess if we can confirm that endpoint with no query parameters get generated with |
I can confirm that we do not use the generic struct On second try, the only bit I can find that might need improving experience for a dev , who is trying to add a none documented parameter to the request, is the need to create a custom struct and remember to add the To simplify this, we can add a method Users should be able to use this constructor below requestConfig := &RequestConfiguration[map[string]interface{}]{} |
Thank you for the additional information.
Even with the --ebc flag?
Having them revert to the request information means they now need to figure out how to execute the request information. Unless we get strong indications this is what people want, I'd avoid it for now. |
if you try to create a request configuration for an endpoint that does not document any query parameters, we don't provide an implementing type with the default query parameters, making it really hard to use it.
Found out while working on microsoft/kiota#4995
The text was updated successfully, but these errors were encountered: