Skip to content

Commit 1f572f6

Browse files
committed
update config file known locations
1 parent 5285854 commit 1f572f6

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

modules/swagger-integration/src/main/java/io/swagger/v3/oas/integration/GenericOpenApiContext.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@ protected List<ImmutablePair<String, String>> getKnownLocations() {
209209
new ImmutablePair<>("classpath", "openapi-configuration.json"),
210210
new ImmutablePair<>("file", "openapi-configuration.yaml"),
211211
new ImmutablePair<>("file", "openapi-configuration.json"),
212+
new ImmutablePair<>("classpath", "openapi.yaml"),
213+
new ImmutablePair<>("classpath", "openapi.json"),
214+
new ImmutablePair<>("file", "openapi.yaml"),
215+
new ImmutablePair<>("file", "openapi.json"),
212216
new ImmutablePair<>("service", "")
213217
);
214218
}

modules/swagger-jaxrs2/src/main/java/io/swagger/v3/jaxrs2/integration/XmlWebOpenApiContext.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ protected List<ImmutablePair<String, String>> getKnownLocations() {
4848
new ImmutablePair<>("servletpath", "openapi-configuration.yaml"),
4949
new ImmutablePair<>("servletpath", "openapi-configuration.json"),
5050
new ImmutablePair<>("servletpath", "WEB-INF/openapi-configuration.yaml"),
51-
new ImmutablePair<>("servletpath", "WEB-INF/openapi-configuration.json")
51+
new ImmutablePair<>("servletpath", "WEB-INF/openapi-configuration.json"),
52+
new ImmutablePair<>("servletpath", "openapi.yaml"),
53+
new ImmutablePair<>("servletpath", "openapi.json"),
54+
new ImmutablePair<>("servletpath", "WEB-INF/openapi.yaml"),
55+
new ImmutablePair<>("servletpath", "WEB-INF/openapi.json")
5256
));
5357
locations.addAll(super.getKnownLocations());
5458
locations.add(new ImmutablePair<>("servlet", "")); // get config from init params

0 commit comments

Comments
 (0)