-
Notifications
You must be signed in to change notification settings - Fork 6k
Update User-Agent for Ruby, Python, PHP, Java, Android #2376
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
Conversation
a6cd10d to
6d2649d
Compare
Update User-Agent for Ruby, Python, PHP, Java, Android
I'm curious why this was made an option to generate instead of something in the config.json. Is there a general move towards options for new things?
You can also supply the CLI option in the config, e.g.
{
"sortParamsByRequiredFlag": true,
"optionalAssemblyInfo": true,
"httpUserAgent": "XXXXXX"
}
I did a test and worked for me. Can you give that a try?
Ah, that makes sense. Thanks!
inska
commented
Apr 27, 2016
@inska I don't think anyone from the community has started working on it. I'll create a separate task for tracking to implement customisable user-agent in other langauges.
Make the User-Agent configurable via
--http-user-agentCLI option.Default to
Swagger-Codegen/{version}/{language}