@@ -91,6 +91,46 @@ public class SwaggerUiConfigParameters extends AbstractSwaggerUiConfigProperties
9191 */
9292 public static final String QUERY_CONFIG_ENABLED_PROPERTY = "queryConfigEnabled" ;
9393
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+
94134 /**
95135 * The Ui root path.
96136 */
@@ -206,16 +246,16 @@ public Map<String, Object> getConfigParameters() {
206246 // empty-string prevents swagger-ui default validation
207247 params .put (VALIDATOR_URL_PROPERTY , validatorUrl != null ? validatorUrl : "" );
208248 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 );
211251 SpringDocPropertiesUtils .put ("defaultModelsExpandDepth" , defaultModelsExpandDepth , params );
212252 SpringDocPropertiesUtils .put ("defaultModelExpandDepth" , defaultModelExpandDepth , params );
213253 SpringDocPropertiesUtils .put ("defaultModelRendering" , defaultModelRendering , params );
214- SpringDocPropertiesUtils .put ("displayRequestDuration" , displayRequestDuration , params );
254+ SpringDocPropertiesUtils .put (DISPLAY_REQUEST_DURATION_PROPERTY , displayRequestDuration , params );
215255 SpringDocPropertiesUtils .put ("docExpansion" , docExpansion , params );
216256 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 );
219259 SpringDocPropertiesUtils .put ("operationsSorter" , operationsSorter , params );
220260 SpringDocPropertiesUtils .put ("tagsSorter" , tagsSorter , params );
221261 SpringDocPropertiesUtils .put (SwaggerUiConfigParameters .LAYOUT_PROPERTY , layout , params );
@@ -225,10 +265,10 @@ public Map<String, Object> getConfigParameters() {
225265 SpringDocPropertiesUtils .put (URL_PROPERTY , url , params );
226266 put (URLS_PROPERTY , urls , params );
227267 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 );
230270 SpringDocPropertiesUtils .put (FILTER_PROPERTY , filter , params );
231- SpringDocPropertiesUtils .put ("withCredentials" , withCredentials , params );
271+ SpringDocPropertiesUtils .put (WITH_CREDENTIALS_PROPERTY , withCredentials , params );
232272 return params ;
233273 }
234274
0 commit comments