Skip to content

Commit

Permalink
Merge pull request swagger-api#2727 from swagger-api/known-locations
Browse files Browse the repository at this point in the history
update config file known locations
  • Loading branch information
frantuma authored Mar 23, 2018
2 parents 5285854 + 1f572f6 commit 5336adb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ protected List<ImmutablePair<String, String>> getKnownLocations() {
new ImmutablePair<>("classpath", "openapi-configuration.json"),
new ImmutablePair<>("file", "openapi-configuration.yaml"),
new ImmutablePair<>("file", "openapi-configuration.json"),
new ImmutablePair<>("classpath", "openapi.yaml"),
new ImmutablePair<>("classpath", "openapi.json"),
new ImmutablePair<>("file", "openapi.yaml"),
new ImmutablePair<>("file", "openapi.json"),
new ImmutablePair<>("service", "")
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ protected List<ImmutablePair<String, String>> getKnownLocations() {
new ImmutablePair<>("servletpath", "openapi-configuration.yaml"),
new ImmutablePair<>("servletpath", "openapi-configuration.json"),
new ImmutablePair<>("servletpath", "WEB-INF/openapi-configuration.yaml"),
new ImmutablePair<>("servletpath", "WEB-INF/openapi-configuration.json")
new ImmutablePair<>("servletpath", "WEB-INF/openapi-configuration.json"),
new ImmutablePair<>("servletpath", "openapi.yaml"),
new ImmutablePair<>("servletpath", "openapi.json"),
new ImmutablePair<>("servletpath", "WEB-INF/openapi.yaml"),
new ImmutablePair<>("servletpath", "WEB-INF/openapi.json")
));
locations.addAll(super.getKnownLocations());
locations.add(new ImmutablePair<>("servlet", "")); // get config from init params
Expand Down

0 comments on commit 5336adb

Please sign in to comment.