Skip to content

Commit

Permalink
fix failing to generate grammar if there is no execution context key …
Browse files Browse the repository at this point in the history
…in dataspace template query (#2906)

fix failing to generate grammar if there is no execution context key in dataspace template query
  • Loading branch information
YannanGao-gs authored Jun 12, 2024
1 parent 678c0fd commit 4e0ddbb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,8 @@ private static String renderDataspaceTemplateExecutable(DataSpaceTemplateExecuta
(getTabString(3) + "id: " + executable.id + ";\n") +
(getTabString(3) + "title: " + convertString(executable.title, true) + ";\n") +
(executable.description != null ? (getTabString(3) + "description: " + convertString(executable.description, true) + ";\n") : "") +
getTabString(3) + "query: " + executable.query.accept(DEPRECATED_PureGrammarComposerCore.Builder.newInstance(context).withIndentation(getTabSize(2)).build()) + ";\n" +
getTabString(3) + "executionContextKey: " + convertString(executable.executionContextKey, true) + ";\n" +
getTabString(3) + "query: " + executable.query.accept(DEPRECATED_PureGrammarComposerCore.Builder.newInstance(context).withIndentation(getTabSize(3)).build()) + ";\n" +
(executable.executionContextKey != null ? getTabString(3) + "executionContextKey: " + convertString(executable.executionContextKey, true) + ";\n" : "") +
getTabString(2) + "}";
}

Expand Down

0 comments on commit 4e0ddbb

Please sign in to comment.