@@ -91,6 +91,46 @@ public class SwaggerUiConfigParameters extends AbstractSwaggerUiConfigProperties
91
91
*/
92
92
public static final String QUERY_CONFIG_ENABLED_PROPERTY = "queryConfigEnabled" ;
93
93
94
+ /**
95
+ * The constant DISPLAY_OPERATION_ID.
96
+ */
97
+ public static final String DISPLAY_OPERATION_ID_PROPERTY = "displayOperationId" ;
98
+
99
+ /**
100
+ * The constant DEEP_LINKING.
101
+ */
102
+ public static final String DEEP_LINKING_PROPERTY ="deepLinking" ;
103
+
104
+ /**
105
+ * The constant DISPLAY_REQUEST_DURATION.
106
+ */
107
+ public static final String DISPLAY_REQUEST_DURATION_PROPERTY = "displayRequestDuration" ;
108
+
109
+ /**
110
+ * The constant SHOW_EXTENSIONS_PROPERTY.
111
+ */
112
+ public static final String SHOW_EXTENSIONS_PROPERTY ="showExtensions" ;
113
+
114
+ /**
115
+ * The constant SHOW_COMMON_EXTENSIONS_PROPERTY.
116
+ */
117
+ public static final String SHOW_COMMON_EXTENSIONS_PROPERTY ="showCommonExtensions" ;
118
+
119
+ /**
120
+ * The constant TRY_IT_ENABLED_PROPERTY.
121
+ */
122
+ public static final String TRY_IT_ENABLED_PROPERTY ="tryItOutEnabled" ;
123
+
124
+ /**
125
+ * The constant PERSIST_AUTHORIZATION_PROPERTY.
126
+ */
127
+ public static final String PERSIST_AUTHORIZATION_PROPERTY ="persistAuthorization" ;
128
+
129
+ /**
130
+ * The constant WITH_CREDENTIALS_PROPERTY.
131
+ */
132
+ public static final String WITH_CREDENTIALS_PROPERTY ="withCredentials" ;
133
+
94
134
/**
95
135
* The Ui root path.
96
136
*/
@@ -206,16 +246,16 @@ public Map<String, Object> getConfigParameters() {
206
246
// empty-string prevents swagger-ui default validation
207
247
params .put (VALIDATOR_URL_PROPERTY , validatorUrl != null ? validatorUrl : "" );
208
248
SpringDocPropertiesUtils .put (CONFIG_URL_PROPERTY , configUrl , params );
209
- SpringDocPropertiesUtils .put ("deepLinking" , this .deepLinking , params );
210
- SpringDocPropertiesUtils .put ("displayOperationId" , displayOperationId , params );
249
+ SpringDocPropertiesUtils .put (DEEP_LINKING_PROPERTY , this .deepLinking , params );
250
+ SpringDocPropertiesUtils .put (DISPLAY_OPERATION_ID_PROPERTY , displayOperationId , params );
211
251
SpringDocPropertiesUtils .put ("defaultModelsExpandDepth" , defaultModelsExpandDepth , params );
212
252
SpringDocPropertiesUtils .put ("defaultModelExpandDepth" , defaultModelExpandDepth , params );
213
253
SpringDocPropertiesUtils .put ("defaultModelRendering" , defaultModelRendering , params );
214
- SpringDocPropertiesUtils .put ("displayRequestDuration" , displayRequestDuration , params );
254
+ SpringDocPropertiesUtils .put (DISPLAY_REQUEST_DURATION_PROPERTY , displayRequestDuration , params );
215
255
SpringDocPropertiesUtils .put ("docExpansion" , docExpansion , params );
216
256
SpringDocPropertiesUtils .put ("maxDisplayedTags" , maxDisplayedTags , params );
217
- SpringDocPropertiesUtils .put ("showExtensions" , showExtensions , params );
218
- SpringDocPropertiesUtils .put ("showCommonExtensions" , showCommonExtensions , params );
257
+ SpringDocPropertiesUtils .put (SHOW_EXTENSIONS_PROPERTY , showExtensions , params );
258
+ SpringDocPropertiesUtils .put (SHOW_COMMON_EXTENSIONS_PROPERTY , showCommonExtensions , params );
219
259
SpringDocPropertiesUtils .put ("operationsSorter" , operationsSorter , params );
220
260
SpringDocPropertiesUtils .put ("tagsSorter" , tagsSorter , params );
221
261
SpringDocPropertiesUtils .put (SwaggerUiConfigParameters .LAYOUT_PROPERTY , layout , params );
@@ -225,10 +265,10 @@ public Map<String, Object> getConfigParameters() {
225
265
SpringDocPropertiesUtils .put (URL_PROPERTY , url , params );
226
266
put (URLS_PROPERTY , urls , params );
227
267
SpringDocPropertiesUtils .put ("urls.primaryName" , urlsPrimaryName , params );
228
- SpringDocPropertiesUtils .put ("tryItOutEnabled" , tryItOutEnabled , params );
229
- SpringDocPropertiesUtils .put ("persistAuthorization" , persistAuthorization , params );
268
+ SpringDocPropertiesUtils .put (TRY_IT_ENABLED_PROPERTY , tryItOutEnabled , params );
269
+ SpringDocPropertiesUtils .put (PERSIST_AUTHORIZATION_PROPERTY , persistAuthorization , params );
230
270
SpringDocPropertiesUtils .put (FILTER_PROPERTY , filter , params );
231
- SpringDocPropertiesUtils .put ("withCredentials" , withCredentials , params );
271
+ SpringDocPropertiesUtils .put (WITH_CREDENTIALS_PROPERTY , withCredentials , params );
232
272
return params ;
233
273
}
234
274
0 commit comments