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 authored and frantuma committed Mar 18, 2024
1 parent 3fcc473 commit a6a588e
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 a6a588e

Please sign in to comment.