From e23304da8c3e0ef7054e7b01c839f49d4f10ec1e Mon Sep 17 00:00:00 2001 From: Guillaume Lagorce Date: Fri, 18 May 2018 00:22:43 +0200 Subject: [PATCH] #129: Add defaultModelsExpandDepth, defaultModelExpandDepth and defaultModelRendering display options --- lib/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/index.js b/lib/index.js index e065a30..5e6924d 100644 --- a/lib/index.js +++ b/lib/index.js @@ -13,6 +13,9 @@ const optionsSchema = Joi.object({ basePath: Joi.string().optional(), swaggerEndpoint: Joi.string().optional(), swaggerOptions: Joi.object({ + defaultModelsExpandDepth: Joi.number().integer().optional(), + defaultModelExpandDepth: Joi.number().integer().positive().optional(), + defaultModelRendering: Joi.string().allow(null).valid(['example', 'model']).optional(), validatorUrl: Joi.string().allow(null, false).optional(), docExpansion: Joi.string().allow(null).valid(['none', 'list', 'full']).optional(), oauth2RedirectUrl: Joi.string().optional(),