Skip to content

Conversation

@antihax
Copy link
Contributor

@antihax antihax commented Nov 20, 2017

PR checklist

  • Read the contribution guidelines.
  • Ran the shell script under ./bin/ to update Petstore sample so that CIs can verify the change. (For instance, only need to run ./bin/{LANG}-petstore.sh and ./bin/security/{LANG}-petstore.sh if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in .\bin\windows\.
  • Filed the PR against the correct branch: 3.0.0 branch for changes related to OpenAPI spec 3.0. Default: master.
  • Copied the technical committee to review the pull request if your PR is targeting a particular programming language.

Addition of Context to all requests

Added context.Context to all requests and tied to the request to be utilized for cancellations, deadlines, logging, tracing, as well as authentication or other value transfer.
Converted to text context keys. int will cause a linter warning.

@antihax antihax changed the title Add context to all requests for tracing, logging, cancellations, etc. [Go] Add context to all requests for tracing, logging, cancellations, etc. Nov 20, 2017
@wing328 wing328 added this to the v2.3.0 milestone Nov 20, 2017
* @param ctx context.Context for authentication, logging, tracing, etc.
@return */
func (a *UserApiService) LogoutUser() ( *http.Response, error) {
func (a *UserApiService) LogoutUser(ctx context.Context, ) ( *http.Response, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@antihax I think there's a way to remove the trailing comma when the endpoint does not require any parameter. Let me know if you need help on this.

@wing328 wing328 merged commit 831e8d7 into swagger-api:master Nov 29, 2017
@antihax antihax deleted the go-update branch December 17, 2017 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants