Skip to content

Commit

Permalink
fix: Add class loader to OpenAPIExtensions ServiceLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
thefirstofthe300 committed Mar 7, 2024
1 parent 3fcc473 commit 839b61b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static Iterator<OpenAPIExtension> chain() {

static {
extensions = new ArrayList<>();
ServiceLoader<OpenAPIExtension> loader = ServiceLoader.load(OpenAPIExtension.class);
ServiceLoader<OpenAPIExtension> loader = ServiceLoader.load(OpenAPIExtension.class, OpenAPIExtensions.class.getClassLoader());
for (OpenAPIExtension ext : loader) {
LOGGER.debug("adding extension {}", ext);
extensions.add(ext);
Expand Down

0 comments on commit 839b61b

Please sign in to comment.