Skip to content
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

Generating swagger version, contact name etc in generated docs #303

Closed
arun0009 opened this issue Jan 19, 2017 · 3 comments
Closed

Generating swagger version, contact name etc in generated docs #303

arun0009 opened this issue Jan 19, 2017 · 3 comments

Comments

@arun0009
Copy link

Is there a way to pass high level swagger fields via proto (e.g. info details such as license:name, contact:name etc).

Also, I see that the generated swagger docs has : "version": "version not set". How can I pass version via proto?

@achew22
Copy link
Collaborator

achew22 commented Jan 20, 2017

@arun0009, seems like an interesting idea. To do this you will have to modify the upstream proto that this project implements. We have decided that we don't want to modify it locally to prevent an accidental fork from the spec.

If you decide to open a dialogue on googleapis/googleapis about this please add me on the issue. I would love to see how things play out.

I'm going to close this until the upstream proto is changed.

@achew22 achew22 closed this as completed Jan 20, 2017
@t-yuki
Copy link
Contributor

t-yuki commented Jan 20, 2017

FYI, In my use case, I wrote a swagger json with contact and versions then simply concat by jq in build pipeline.
eg: jq -s '.[0] * .[1]' service.swagger.json swagger-info.json >${out}

@tmc
Copy link
Collaborator

tmc commented Jan 20, 2017

FWIW I do the same as @t-yuki

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

No branches or pull requests

4 participants