-
Notifications
You must be signed in to change notification settings - Fork 9k
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
Add missing default configuration options #9945
Add missing default configuration options #9945
Comments
The missing configs are:
|
I think there is additional |
The default for it is: requestInterceptor: (a) => a so perhaps it should be: requestInterceptor: (request) => {
request.curlOptions = null;
return request;
} |
Potential default values for each of them:
swagger-ui/src/core/plugins/spec/selectors.js Lines 263 to 279 in d5e56e5
Considering that they are supposed to be sorting functions, I think we should have them as null so that they don't run at all. In our configuration, it says that they are: Function=(a => a) and making that default wouldn't sort anything as well, so it's also an option.
|
Yes, good choice for the defaults. I would also go for a For the requestInterceptor: (request) => {
request.curlOptions = [];
return request;
} |
Refs #9945 --- Co-authored-by: Vladimír Gorej <vladimir.gorej@gmail.com>
Addressed in #9949 |
There are configuration options, such as
modelPropertyMacro
andparameterMacro
, which do not have any default values defined in:swagger-ui/src/core/config/defaults.js
Line 6 in d5e56e5
We need to identify all of the missing options and assign them default values.
The text was updated successfully, but these errors were encountered: