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

Allow custom attributes in definition #43

Open
opyate opened this issue Mar 19, 2019 · 0 comments
Open

Allow custom attributes in definition #43

opyate opened this issue Mar 19, 2019 · 0 comments

Comments

@opyate
Copy link
Contributor

opyate commented Mar 19, 2019

I'd like to be able to add custom attributes to the definition, e.g. these.

I've tried something like this:

app.use(swagger.express(
  {
    definition: {
      info: {
        title: "My API",
        version: "1.0"
      },
      host: 'example.org',
      'x-google-allow': 'all',
      externalDocs: {
        url: "http:/example.org"
      }
    },
  }
))

...but it doesn't work. Is there a way to allow custom attributes?

Thanks!

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

1 participant