Skip to content

Conversation

@antihax
Copy link
Contributor

@antihax antihax commented Dec 2, 2016

PR checklist

  • Read the contribution guildelines.
  • Ran the shell/batch 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)
  • Filed the PR against the correct branch: master for non-breaking changes and 2.3.0 branch for breaking (non-backward compatible) changes.

Description of the PR

Few Golang fixes.

Add support for optional queryParams.

Remove parameterToString from exports (end user should not need this function).

Add comma back to localVarHttpContentTypes and localVarHttpHeaderAccepts as it refuses to compile without it.

Rewrite ParameterToString to handle other slice types other than just string.

Remove parameterToString from exports (end user should not need this function).

Add comma back to localVarHttpContentTypes and localVarHttpHeaderAccepts as it refuses to compile without it.

Rewrite ParameterToString to handle other slice types other than just string.
@NfNitLoop
Copy link

See my comment here -- wouldn't it be better to use pointers for optional types, to allow passing in nil for unspecified values, while retaining compile-time type checking?

@wing328
Copy link
Contributor

wing328 commented Dec 12, 2016

@antihax please take a look at #4369 when you've time as #4369 also aims to provide support for optional parameters.

@wing328
Copy link
Contributor

wing328 commented Dec 20, 2016

I believe this can be closed as #4415 has been merged into 2.3.0

@wing328 wing328 closed this Dec 20, 2016
@antihax antihax deleted the Golang-Fixes1 branch December 21, 2016 03:26
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.

3 participants