Skip to content

Commit

Permalink
fix(config): define missing default options
Browse files Browse the repository at this point in the history
Refs #9945
  • Loading branch information
glowcloud committed May 20, 2024
1 parent d5e56e5 commit 2674241
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/core/config/defaults.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ const defaultOptions = Object.freeze({
displayRequestDuration: false,
deepLinking: false,
tryItOutEnabled: false,
requestInterceptor: (a) => a,
requestInterceptor: (request) => {
request.curlOptions = []
return request
},
responseInterceptor: (a) => a,
showMutatedRequest: true,
defaultModelRendering: "example",
Expand Down Expand Up @@ -80,6 +83,11 @@ const defaultOptions = Object.freeze({
activated: true,
theme: "agate",
},
operationsSorter: null,
tagsSorter: null,
onComplete: () => {},
modelPropertyMacro: null,
parameterMacro: null,
})

export default defaultOptions

0 comments on commit 2674241

Please sign in to comment.