mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 03:18:53 +00:00
isssue#2579: added "UserAgen" in configuration
This commit is contained in:
parent
3aeef74dd0
commit
1f085ccd52
@ -18,6 +18,7 @@ type Configuration struct {
|
||||
Scheme string `json:"scheme,omitempty"`
|
||||
AccessToken string `json:"accessToken,omitempty"`
|
||||
DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
|
||||
UserAgent string `json:"userAgent,omitempty"`
|
||||
}
|
||||
|
||||
func NewConfiguration() *Configuration {
|
||||
@ -27,7 +28,8 @@ func NewConfiguration() *Configuration {
|
||||
Debug: false,
|
||||
DefaultHeader: make(map[string]string),
|
||||
ApiKey: make(map[string]string),
|
||||
ApiKeyPrefix: make(map[string]string) ,
|
||||
ApiKeyPrefix: make(map[string]string),
|
||||
UserAgent: "Swagger-Codegen/{{version}}/go",
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -18,6 +18,7 @@ type Configuration struct {
|
||||
Scheme string `json:"scheme,omitempty"`
|
||||
AccessToken string `json:"accessToken,omitempty"`
|
||||
DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
|
||||
UserAgent string `json:"userAgent,omitempty"`
|
||||
}
|
||||
|
||||
func NewConfiguration() *Configuration {
|
||||
@ -27,7 +28,8 @@ func NewConfiguration() *Configuration {
|
||||
Debug: false,
|
||||
DefaultHeader: make(map[string]string),
|
||||
ApiKey: make(map[string]string),
|
||||
ApiKeyPrefix: make(map[string]string) ,
|
||||
ApiKeyPrefix: make(map[string]string),
|
||||
UserAgent: "Swagger-Codegen/1.0.0/go",
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user