Skip to content

Commit

Permalink
updating isCustomEvent check
Browse files Browse the repository at this point in the history
Signed-off-by: Jalander Ramagiri <[email protected]>
  • Loading branch information
Jalander Ramagiri committed Jul 24, 2024
1 parent dff52e9 commit 2227b6e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private static SchemaData buildCDEventDataFromJsonSchema(File file) {
JsonNode contextNode = rootNode.get("properties").get("context").get("properties");
JsonNode subjectNode = rootNode.get("properties").get("subject").get("properties");
String schemaURL = rootNode.get("$id").asText();
boolean isCustomEvent = schemaURL.endsWith("custom");
boolean isCustomEvent = schemaURL.endsWith("schema/custom");

schemaData.setSchemaURL(schemaURL);
schemaData.setBaseURI(schemaURL.substring(0, schemaURL.lastIndexOf("/") + 1));
Expand Down

0 comments on commit 2227b6e

Please sign in to comment.