Skip to content

Commit

Permalink
🩹 Fix OpenAPI URL property warning
Browse files Browse the repository at this point in the history
  • Loading branch information
agmangas committed Sep 11, 2023
1 parent 96c7f44 commit 5adc108
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,11 @@ public void initialize(ServiceExtensionContext context) {
openapiUrl = context.getSetting(OPENAPI_URL, null);

if (openapiUrl != null) {
monitor.warning(String.format("OpenAPI URL (property '%s') is not set", OPENAPI_URL));
PolicyDefinition policy = buildPolicyDefinition();
policyStore.create(policy);
createAssets(context, policy.getUid());
} else {
monitor.warning(String.format("OpenAPI URL (property '%s') is not set", OPENAPI_URL));
}

Package pkg = OpenAPICoreExtension.class.getPackage();
Expand Down

0 comments on commit 5adc108

Please sign in to comment.