Skip to content

Commit

Permalink
style: format options.model
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfonso Reyes committed Sep 3, 2020
1 parent 3806add commit b453fa8
Showing 1 changed file with 11 additions and 33 deletions.
44 changes: 11 additions & 33 deletions src/model/options.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,37 +20,15 @@ export const schema = (document: OpenAPIObject) =>
supressWarnings: Joi.boolean().optional().default(true),
hideHostname: Joi.boolean().optional().default(false),
expandResponses: Joi.string().optional(),
requiredPropsFirst: Joi.boolean()
.optional()
.default(true),
sortPropsAlphabetically: Joi.boolean()
.optional()
.default(true),
showExtensions: Joi.any()
.optional()
.default(false),
noAutoAuth: Joi.boolean()
.optional()
.default(true),
pathInMiddlePanel: Joi.boolean()
.optional()
.default(false),
hideLoading: Joi.boolean()
.optional()
.default(false),
nativeScrollbars: Joi.boolean()
.optional()
.default(false),
hideDownloadButton: Joi.boolean()
.optional()
.default(false),
disableSearch: Joi.boolean()
.optional()
.default(false),
onlyRequiredInSamples: Joi.boolean()
.optional()
.default(false),
docName: Joi.string()
.optional()
.default('swagger')
requiredPropsFirst: Joi.boolean().optional().default(true),
sortPropsAlphabetically: Joi.boolean().optional().default(true),
showExtensions: Joi.any().optional().default(false),
noAutoAuth: Joi.boolean().optional().default(true),
pathInMiddlePanel: Joi.boolean().optional().default(false),
hideLoading: Joi.boolean().optional().default(false),
nativeScrollbars: Joi.boolean().optional().default(false),
hideDownloadButton: Joi.boolean().optional().default(false),
disableSearch: Joi.boolean().optional().default(false),
onlyRequiredInSamples: Joi.boolean().optional().default(false),
docName: Joi.string().optional().default('swagger'),
});

0 comments on commit b453fa8

Please sign in to comment.