File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -212,14 +212,14 @@ export async function initApp(inOtomiStack?: OtomiStack) {
212212 apiSpec : path . join ( __dirname , 'generated-schema.json' ) ,
213213 validateRequests : {
214214 allowUnknownQueryParameters : false ,
215- coerceTypes : 'array' ,
215+ coerceTypes : 'array' , // coerce scalar data to an array with one element and vice versa (as required by the schema).
216216 } ,
217217 validateResponses : false , // Start with false, can enable later for debugging
218- validateSecurity : {
219- handlers : {
220- groupAuthz : groupAuthzSecurityHandler ,
221- } ,
222- } ,
218+ validateSecurity : env . isDev
219+ ? false
220+ : {
221+ handlers : { groupAuthz : groupAuthzSecurityHandler } ,
222+ } ,
223223 operationHandlers : path . join ( __dirname , 'api' ) , // Enable operation handlers
224224 ignorePaths : / \/ a p i - d o c s / , // Exclude swagger docs
225225 } ) ,
You can’t perform that action at this time.
0 commit comments