Skip to content

Commit d0da4a0

Browse files
committed
Fix typo in Constants
1 parent a714f41 commit d0da4a0

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

springdoc-openapi-starter-common/src/main/java/org/springdoc/core/utils/Constants.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ public final class Constants {
5555
public static final String API_DOCS_URL = "${springdoc.api-docs.path:#{T(org.springdoc.core.utils.Constants).DEFAULT_API_DOCS_URL}}";
5656

5757
/**
58-
* The constant SWAGGGER_CONFIG_FILE.
58+
* The constant SWAGGER_CONFIG_FILE.
5959
*/
60-
public static final String SWAGGGER_CONFIG_FILE = "swagger-config";
60+
public static final String SWAGGER_CONFIG_FILE = "swagger-config";
6161

6262
/**
6363
* The constant SWAGGER_CONFIG_URL.
6464
*/
65-
public static final String SWAGGER_CONFIG_URL = API_DOCS_URL + DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE;
65+
public static final String SWAGGER_CONFIG_URL = API_DOCS_URL + DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE;
6666

6767
/**
6868
* The constant YAML.

springdoc-openapi-starter-webflux-ui/src/main/java/org/springdoc/webflux/ui/SwaggerWelcomeActuator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
import static org.springdoc.core.utils.Constants.DEFAULT_API_DOCS_ACTUATOR_URL;
4747
import static org.springdoc.core.utils.Constants.DEFAULT_SWAGGER_UI_ACTUATOR_PATH;
48-
import static org.springdoc.core.utils.Constants.SWAGGGER_CONFIG_FILE;
48+
import static org.springdoc.core.utils.Constants.SWAGGER_CONFIG_FILE;
4949
import static org.springframework.util.AntPathMatcher.DEFAULT_PATH_SEPARATOR;
5050

5151
/**
@@ -58,7 +58,7 @@ public class SwaggerWelcomeActuator extends SwaggerWelcomeCommon {
5858
/**
5959
* The constant SWAGGER_CONFIG_ACTUATOR_URL.
6060
*/
61-
private static final String SWAGGER_CONFIG_ACTUATOR_URL = DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE;
61+
private static final String SWAGGER_CONFIG_ACTUATOR_URL = DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE;
6262

6363
/**
6464
* The Web endpoint properties.
@@ -147,7 +147,7 @@ protected String buildUrlWithContextPath(String swaggerUiUrl) {
147147
protected String buildSwaggerConfigUrl() {
148148
return contextPath + webEndpointProperties.getBasePath()
149149
+ DEFAULT_PATH_SEPARATOR + DEFAULT_SWAGGER_UI_ACTUATOR_PATH
150-
+ DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE;
150+
+ DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE;
151151
}
152152

153153
}

springdoc-openapi-starter-webflux-ui/src/main/java/org/springdoc/webflux/ui/SwaggerWelcomeWebFlux.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
import org.springframework.web.util.UriComponentsBuilder;
4040

4141
import static org.springdoc.core.utils.Constants.SWAGGER_UI_PATH;
42-
import static org.springdoc.core.utils.Constants.SWAGGGER_CONFIG_FILE;
42+
import static org.springdoc.core.utils.Constants.SWAGGER_CONFIG_FILE;
4343
import static org.springframework.util.AntPathMatcher.DEFAULT_PATH_SEPARATOR;
4444

4545
/**
@@ -137,7 +137,7 @@ protected String buildUrlWithContextPath(String swaggerUiUrl) {
137137
*/
138138
@Override
139139
protected String buildSwaggerConfigUrl() {
140-
return this.apiDocsUrl + DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE;
140+
return this.apiDocsUrl + DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE;
141141
}
142142

143143
}

springdoc-openapi-starter-webmvc-ui/src/main/java/org/springdoc/webmvc/ui/SwaggerWelcomeActuator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
import static org.springdoc.core.utils.Constants.DEFAULT_API_DOCS_ACTUATOR_URL;
4343
import static org.springdoc.core.utils.Constants.DEFAULT_SWAGGER_UI_ACTUATOR_PATH;
44-
import static org.springdoc.core.utils.Constants.SWAGGGER_CONFIG_FILE;
44+
import static org.springdoc.core.utils.Constants.SWAGGER_CONFIG_FILE;
4545
import static org.springframework.util.AntPathMatcher.DEFAULT_PATH_SEPARATOR;
4646

4747
/**
@@ -50,7 +50,7 @@
5050
@ControllerEndpoint(id = DEFAULT_SWAGGER_UI_ACTUATOR_PATH)
5151
public class SwaggerWelcomeActuator extends SwaggerWelcomeCommon {
5252

53-
private static final String SWAGGER_CONFIG_ACTUATOR_URL = DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE;
53+
private static final String SWAGGER_CONFIG_ACTUATOR_URL = DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE;
5454

5555
/**
5656
* The Web endpoint properties.
@@ -117,7 +117,7 @@ protected String buildUrlWithContextPath(String swaggerUiUrl) {
117117
protected String buildSwaggerConfigUrl() {
118118
return contextPath + webEndpointProperties.getBasePath()
119119
+ DEFAULT_PATH_SEPARATOR + DEFAULT_SWAGGER_UI_ACTUATOR_PATH
120-
+ DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE;
120+
+ DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE;
121121
}
122122

123123
}

springdoc-openapi-starter-webmvc-ui/src/main/java/org/springdoc/webmvc/ui/SwaggerWelcomeWebMvc.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
import static org.springdoc.core.utils.Constants.MVC_SERVLET_PATH;
4141
import static org.springdoc.core.utils.Constants.SWAGGER_UI_PATH;
42-
import static org.springdoc.core.utils.Constants.SWAGGGER_CONFIG_FILE;
42+
import static org.springdoc.core.utils.Constants.SWAGGER_CONFIG_FILE;
4343
import static org.springframework.util.AntPathMatcher.DEFAULT_PATH_SEPARATOR;
4444

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

@@ -142,7 +142,7 @@ protected String buildUrlWithContextPath(String swaggerUiUrl) {
142142
*/
143143
@Override
144144
protected String buildSwaggerConfigUrl() {
145-
return apiDocsUrl + DEFAULT_PATH_SEPARATOR + SWAGGGER_CONFIG_FILE;
145+
return apiDocsUrl + DEFAULT_PATH_SEPARATOR + SWAGGER_CONFIG_FILE;
146146
}
147147

148148
}

0 commit comments

Comments
 (0)