Skip to content

Commit 38f0e5c

Browse files
committed
isSearchClient
1 parent d4ec6b5 commit 38f0e5c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

generators/src/main/java/com/algolia/codegen/cts/guides/GuidesGenerator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ public void addSupportingFiles(List<SupportingFile> supportingFiles, String outp
5050

5151
@Override
5252
public void run(Map<String, CodegenModel> models, Map<String, CodegenOperation> operations, Map<String, Object> bundle) throws Exception {
53+
if (this.client.equals("search")) {
54+
bundle.put("isSearchClient", true);
55+
}
5356
// nothing to do here, the mustache uses dynamicSnippets lambda
5457
}
5558
}

0 commit comments

Comments
 (0)