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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in Constants #2507

Merged
merged 1 commit into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ public final class Constants {
public static final String API_DOCS_URL = "${springdoc.api-docs.path:#{T(org.springdoc.core.utils.Constants).DEFAULT_API_DOCS_URL}}";

/**
* The constant SWAGGGER_CONFIG_FILE.
* The constant SWAGGER_CONFIG_FILE.
*/
public static final String SWAGGGER_CONFIG_FILE = "swagger-config";
public static final String SWAGGER_CONFIG_FILE = "swagger-config";

/**
* The constant SWAGGER_CONFIG_URL.
*/
public static final String SWAGGER_CONFIG_URL = API_DOCS_URL + DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE;
public static final String SWAGGER_CONFIG_URL = API_DOCS_URL + DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE;

/**
* The constant YAML.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

import static org.springdoc.core.utils.Constants.DEFAULT_API_DOCS_ACTUATOR_URL;
import static org.springdoc.core.utils.Constants.DEFAULT_SWAGGER_UI_ACTUATOR_PATH;
import static org.springdoc.core.utils.Constants.SWAGGGER_CONFIG_FILE;
import static org.springdoc.core.utils.Constants.SWAGGER_CONFIG_FILE;
import static org.springframework.util.AntPathMatcher.DEFAULT_PATH_SEPARATOR;

/**
Expand All @@ -58,7 +58,7 @@ public class SwaggerWelcomeActuator extends SwaggerWelcomeCommon {
/**
* The constant SWAGGER_CONFIG_ACTUATOR_URL.
*/
private static final String SWAGGER_CONFIG_ACTUATOR_URL = DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE;
private static final String SWAGGER_CONFIG_ACTUATOR_URL = DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE;

/**
* The Web endpoint properties.
Expand Down Expand Up @@ -147,7 +147,7 @@ protected String buildUrlWithContextPath(String swaggerUiUrl) {
protected String buildSwaggerConfigUrl() {
return contextPath + webEndpointProperties.getBasePath()
+ DEFAULT_PATH_SEPARATOR + DEFAULT_SWAGGER_UI_ACTUATOR_PATH
+ DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE;
+ DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
import org.springframework.web.util.UriComponentsBuilder;

import static org.springdoc.core.utils.Constants.SWAGGER_UI_PATH;
import static org.springdoc.core.utils.Constants.SWAGGGER_CONFIG_FILE;
import static org.springdoc.core.utils.Constants.SWAGGER_CONFIG_FILE;
import static org.springframework.util.AntPathMatcher.DEFAULT_PATH_SEPARATOR;

/**
Expand Down Expand Up @@ -137,7 +137,7 @@ protected String buildUrlWithContextPath(String swaggerUiUrl) {
*/
@Override
protected String buildSwaggerConfigUrl() {
return this.apiDocsUrl + DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE;
return this.apiDocsUrl + DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

import static org.springdoc.core.utils.Constants.DEFAULT_API_DOCS_ACTUATOR_URL;
import static org.springdoc.core.utils.Constants.DEFAULT_SWAGGER_UI_ACTUATOR_PATH;
import static org.springdoc.core.utils.Constants.SWAGGGER_CONFIG_FILE;
import static org.springdoc.core.utils.Constants.SWAGGER_CONFIG_FILE;
import static org.springframework.util.AntPathMatcher.DEFAULT_PATH_SEPARATOR;

/**
Expand All @@ -50,7 +50,7 @@
@ControllerEndpoint(id = DEFAULT_SWAGGER_UI_ACTUATOR_PATH)
public class SwaggerWelcomeActuator extends SwaggerWelcomeCommon {

private static final String SWAGGER_CONFIG_ACTUATOR_URL = DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE;
private static final String SWAGGER_CONFIG_ACTUATOR_URL = DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE;

/**
* The Web endpoint properties.
Expand Down Expand Up @@ -117,7 +117,7 @@ protected String buildUrlWithContextPath(String swaggerUiUrl) {
protected String buildSwaggerConfigUrl() {
return contextPath + webEndpointProperties.getBasePath()
+ DEFAULT_PATH_SEPARATOR + DEFAULT_SWAGGER_UI_ACTUATOR_PATH
+ DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE;
+ DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

import static org.springdoc.core.utils.Constants.MVC_SERVLET_PATH;
import static org.springdoc.core.utils.Constants.SWAGGER_UI_PATH;
import static org.springdoc.core.utils.Constants.SWAGGGER_CONFIG_FILE;
import static org.springdoc.core.utils.Constants.SWAGGER_CONFIG_FILE;
import static org.springframework.util.AntPathMatcher.DEFAULT_PATH_SEPARATOR;

/**
Expand All @@ -57,7 +57,7 @@ public class SwaggerWelcomeWebMvc extends SwaggerWelcomeCommon {
/**
* The Mvc servlet path.
*/
// To keep compatiblity with spring-boot 1 - WebMvcProperties changed package from srping 4 to spring 5
// To keep compatiblity with spring-boot 1 - WebMvcProperties changed package from spring 4 to spring 5
@Value(MVC_SERVLET_PATH)
private String mvcServletPath;

Expand Down Expand Up @@ -142,7 +142,7 @@ protected String buildUrlWithContextPath(String swaggerUiUrl) {
*/
@Override
protected String buildSwaggerConfigUrl() {
return apiDocsUrl + DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE;
return apiDocsUrl + DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE;
}

}