paradoxical-io / dropwizard.swagger

Add swagger to your admin resource for dropwizard
MIT License
9 stars 1 forks source link

info: object missing from swagger.yaml/swagger.json #20

Open zetlan opened 7 years ago

zetlan commented 7 years ago

I have an a Dropwizard 1.0.6 app running with dropwizard-swagger 3.0. It's initialized thusly:

        bootstrap.addBundle(
                new SwaggerUIBundle(env -> new AppSwaggerConfiguration(env) {
                    {
                        setTitle("TITLE GOES HERE");
                        setDescription("DESCRIPTION GOES HERE");
                        // et cetera...
                    }
                }));

When I pull down the API spec (GET /swagger/api/swagger.yaml), the resulting yaml file is missing the info: block where the title & description should be (actually, must be, according to the Swagger spec and online editor).

Am I doing something wrong? I tried checking out the v3.0 sample app to see if it was a problem in my code vs. the dropwizard-swagger module, but couldn't get the sample app working properly (that's logged as a separate issue).

tingley commented 7 years ago

I've encountered the same problem in both 2.4 and 3.0, using dropwizard 1.0.