Skip to content

[go-experimental] Support selection and formatting of endpoint servers#4755

Merged
jimschubert merged 6 commits intoOpenAPITools:masterfrom
jirikuncar:go-client-endpoint-servers
Dec 18, 2019
Merged

[go-experimental] Support selection and formatting of endpoint servers#4755
jimschubert merged 6 commits intoOpenAPITools:masterfrom
jirikuncar:go-client-endpoint-servers

Conversation

@jirikuncar
Copy link
Contributor

@jirikuncar jirikuncar commented Dec 10, 2019

Support selection and formatting of endpoint servers using context.

Addresses #590

PR checklist

  • Read the contribution guidelines.
  • If contributing template-only or documentation-only changes which will change sample output, build the project before.
  • Run the shell script(s) under ./bin/ (or Windows batch scripts under.\bin\windows) to update Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit, and these must match the expectations made by your contribution. You only need to run ./bin/{LANG}-petstore.sh, ./bin/openapi3/{LANG}-petstore.sh if updating the code or mustache templates for a language ({LANG}) (e.g. php, ruby, python, etc).
  • File the PR against the correct branch: master, 4.3.x, 5.0.x. Default: master.
  • Copy the technical committee to review the pull request if your PR is targeting a particular programming language.

cc @antihax (2017/11) @bvwells (2017/12) @grokify (2018/07) @kemokemo (2018/09) @bkabrda (2019/07)

@jirikuncar
Copy link
Contributor Author

Should I create the same patch also for go templates?

@jirikuncar jirikuncar changed the title [GO] Support selection and formatting of endpoint servers [go-experimental] Support selection and formatting of endpoint servers Dec 11, 2019
@jirikuncar
Copy link
Contributor Author

⬆️ @antihax (2017/11) @bvwells (2017/12) @grokify (2018/07) @kemokemo (2018/09) @bkabrda (2019/07)

@jirikuncar jirikuncar force-pushed the go-client-endpoint-servers branch 3 times, most recently from d6205a0 to d7ff24b Compare December 16, 2019 07:58
@zippolyte
Copy link
Contributor

This looks good to me ! thanks @jirikuncar

Copy link
Contributor

@bkabrda bkabrda left a comment

Choose a reason for hiding this comment

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

This looks really great overall. I left couple minor comments to fix, mostly improving error messages. We will also need to document this properly so that users know how to use all this functionality from the autogenerated docs.

As for including this in the stable go templates, I don't think we should do that. It breaks API of the generated clients (e.g. it removes Configuration.BasePath), so that's a no-go.

@jirikuncar jirikuncar force-pushed the go-client-endpoint-servers branch from fc8ea67 to 22bc388 Compare December 16, 2019 11:47
Copy link
Contributor

@bkabrda bkabrda left a comment

Choose a reason for hiding this comment

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

LGTM now (assuming CI run passes :)). Thanks!

@jirikuncar
Copy link
Contributor Author

All green 🎉 @wing328 🙏

@jimschubert
Copy link
Member

Thanks! This looks awesome and I'm looking forward to seeing positive use cases in the wild.

@jirikuncar jirikuncar deleted the go-client-endpoint-servers branch December 18, 2019 13:07
@wing328 wing328 added this to the 4.2.3 milestone Jan 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants