Allow custom attributes in definition
opyate opened this issue · 0 comments
opyate commented
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!