forked from loafle/openapi-generator-original
update rust default user agent to promote swagger codegen
This commit is contained in:
@@ -11,7 +11,7 @@ impl<C: hyper::client::Connect> Configuration<C> {
|
||||
pub fn new(client: hyper::client::Client<C>) -> Configuration<C> {
|
||||
Configuration {
|
||||
base_path: "{{{basePath}}}".to_owned(),
|
||||
user_agent: {{#httpUserAgent}}Some("{{{.}}}".to_owned()){{/httpUserAgent}}{{^httpUserAgent}}None{{/httpUserAgent}},
|
||||
user_agent: {{#httpUserAgent}}Some("{{{.}}}".to_owned()){{/httpUserAgent}}{{^httpUserAgent}}Some("Swagger-Codegen/{{version}}/rust".to_owned()){{/httpUserAgent}},
|
||||
client: client,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
2.3.1-SNAPSHOT
|
||||
2.4.0-SNAPSHOT
|
||||
@@ -20,7 +20,7 @@ impl<C: hyper::client::Connect> Configuration<C> {
|
||||
pub fn new(client: hyper::client::Client<C>) -> Configuration<C> {
|
||||
Configuration {
|
||||
base_path: "http://petstore.swagger.io/v2".to_owned(),
|
||||
user_agent: None,
|
||||
user_agent: Some("Swagger-Codegen/1.0.0/rust".to_owned()),
|
||||
client: client,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user