generator-go-sdk
feature propose: request option support configuration
#2889
Labels
data/swagger-issue
An issue related to the Swagger/OpenAPI Definitions
question
Further information is requested
An API Request like
from method_registriescreateorupdate.go
can we provide an varadic argument
func (*client.RequestOptions)
to the method so we can configure the behavior to workaround some swagger issues like Azure/azure-rest-api-specs#25119. This is right a service swagger issue, but withOptions
our sdk can be more flexible and stronger.then the new method may look like:
we can call the Option func before build the request:
the SDK call from azurerm can be:
The text was updated successfully, but these errors were encountered: