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

I cant config security definitions #25

Closed
ghost opened this issue Jun 23, 2016 · 3 comments
Closed

I cant config security definitions #25

ghost opened this issue Jun 23, 2016 · 3 comments

Comments

@ghost
Copy link

ghost commented Jun 23, 2016

I put config securityDefinitions, but still this property is empty.

@chdanielmueller
Copy link
Member

Please check the following part from the README.md

Load external definitions

You can load external definitions or paths after swaggerJSDoc() function.

// Initialize swagger-jsdoc -> returns validated swagger spec in json format
var swaggerSpec = swaggerJSDoc(options);
// load external schema json
swaggerSpec.definitions.in_login = require("config/schemajson/in.login.schema.json");
swaggerSpec.definitions.out_login = require("config/schemajson/out.login.schema.json");
// or set manual paths
swaggerSpec.paths["api/v1/cool"] = {"get" : { ... } }
};

@kalinchernev
Copy link
Contributor

@TopGuo please follow examples from previous questions. For instance, #141

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

3 participants
@kalinchernev @chdanielmueller and others