mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-14 13:21:39 +00:00
Add: comment about OpenAPI validator
This commit is contained in:
parent
be74330512
commit
6fe6330c7f
1 changed files with 6 additions and 1 deletions
|
|
@ -204,8 +204,13 @@ class Server {
|
||||||
next()
|
next()
|
||||||
})
|
})
|
||||||
|
|
||||||
// Install the OpenApiValidator middleware
|
// Install the OpenApiValidator middleware if using a dev environment
|
||||||
if (Logger.isDev) {
|
if (Logger.isDev) {
|
||||||
|
// If you do not want to use this, you can comment out the entire section
|
||||||
|
// or only certain parts.
|
||||||
|
//
|
||||||
|
// The default value of `validateResponses` is false, so it can be safely commented
|
||||||
|
// out if the validation is causing problems.
|
||||||
const apiSpec = Path.join(__dirname, '..', 'docs', 'openapi.json')
|
const apiSpec = Path.join(__dirname, '..', 'docs', 'openapi.json')
|
||||||
app.use(
|
app.use(
|
||||||
OpenApiValidator.middleware({
|
OpenApiValidator.middleware({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue