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
extension fields in info.contact do not propagate to embedded spec #2054
Comments
Good catch go-openapi/spec should define both contacts and license to be vendor extensible |
If anyone is interested in helping out here, here are some guidelines https://github.com/go-openapi/spec/blob/8557d72e4f077c2dbe1e48df09e596b6fb9b7991/contact_info.go#L20 should be extended with this https://github.com/go-openapi/spec/blob/8557d72e4f077c2dbe1e48df09e596b6fb9b7991/info.go#L73. For licensing: https://github.com/go-openapi/spec/blob/8557d72e4f077c2dbe1e48df09e596b6fb9b7991/license.go#L20 On top of that, the spec mixin tool at github.com/go-openapi/analysis needs to know about this too: |
Hey - I am new to OSS contribution. Can I work on this task if no one else is attempting ? |
@kul-amr yes sure, contributions are welcome. I've put some links above. |
… propagate to embedded spec
… propagate to embedded spec Signed-off-by: Amruta Kulkarni <amruta9.kulkarni@gmail.com>
This has been fixed. Closing. |
Problem statement
I need to add an extension field
info.contact.x-teams
to the spec served by the generated server, but the extension field is dropped during generation. I don't need to access it in my code, I just need it to get passed on so tools parsing our swagger specs can make use of it.Swagger specification
Steps to reproduce
Resulting embedded_spec:
Environment
swagger version: v0.20.1
go version: go1.12.9 darwin/amd64
OS: macOS Mojave 10.14.6
The text was updated successfully, but these errors were encountered: