-
Notifications
You must be signed in to change notification settings - Fork 184
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
How to access "Swagger" object #55
Comments
Hey @santiagopoli did you figure this out? I'm looking at doing a similar thing. I have a Bundle provided by someone else which I want to manually add swagger API docs for, but I'm not sure how best to go about it. I'd also like to add tags and external docs as you mentioned. I'm happy to make a Pull Request if you have any thoughts about how best to expose the Swagger object, was thinking we could just add a new method to SwaggerBundle that can be overriden giving access to the Swagger object inside of BeanConfig? |
Looking at https://github.com/swagger-api/swagger-core/wiki/Swagger-Core-Jersey-2.X-Project-Setup-1.5 you can see that the only object available to configure is |
Unfortunately, tags are one of the few things you can't configure via Annotations. Obviously, it would be very difficult to integrate this functionality because it transcends swagger-jersey2-jaxrs. |
I have a similar need to access the |
Hi!
I want to set additional information to my swagger config (Tag descriptions for example) like this example:
I'm unable to set that kind of properties within SwaggerBundleConfiguration (Only title, description, terms of service, license and contact are available). I've actually tried to obtain the Swagger object via ApplicationContext but without any luck (it returns null). Is there a way to access the swagger base object to do this (any other workaround will be appreciated tough)?.
Thanks!
The text was updated successfully, but these errors were encountered: