Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(config): define missing default options #9949

Merged
merged 4 commits into from
May 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 = []
char0n marked this conversation as resolved.
Show resolved Hide resolved
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