{"record":{"id":"289cad9ce71b9398","repo":"OpenAPITools/openapi-generator","slug":"only-the-handlebarsengineadapter-is-supported-for","errorCode":null,"errorMessage":"Only the HandlebarsEngineAdapter is supported for this generator","messagePattern":"Only the HandlebarsEngineAdapter is supported for this generator","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GdscriptClientCodegen.java","lineNumber":311,"sourceCode":"        super.processOpts();\n\n        processAdditionalProperties();\n        supportingFiles.add(new SupportingFile(\"core/ApiBee.handlebars\", \"core\", toCoreFilename(\"ApiBee\") + \".gd\"));\n        supportingFiles.add(new SupportingFile(\"core/ApiError.handlebars\", \"core\", toCoreFilename(\"ApiError\") + \".gd\"));\n        supportingFiles.add(new SupportingFile(\"core/ApiConfig.handlebars\", \"core\", toCoreFilename(\"ApiConfig\") + \".gd\"));\n        supportingFiles.add(new SupportingFile(\"core/ApiResponse.handlebars\", \"core\", toCoreFilename(\"ApiResponse\") + \".gd\"));\n        supportingFiles.add(new SupportingFile(\"README.handlebars\", \"\", \"README.md\"));\n\n        // Ensure we're using the appropriate template engine, and configure it while we're at it.\n        // We had to use handlebars because the truthy values of mustache include `\"\"` and `\"null\"`,\n        // and things went south for default values and examples (but descriptions were OK, somehow)\n        TemplatingEngineAdapter templatingEngine = getTemplatingEngine();\n        if (templatingEngine instanceof HandlebarsEngineAdapter) {\n            HandlebarsEngineAdapter handlebars = (HandlebarsEngineAdapter) templatingEngine;\n            //handlebars.infiniteLoops(true); // will we want this eventually?\n            handlebars.setPrettyPrint(true);  // removes blank lines left by flow control tags\n        } else {\n            throw new RuntimeException(\"Only the HandlebarsEngineAdapter is supported for this generator\");\n        }\n    }\n\n    @Override\n    public String apiDocFileFolder() {\n        return (outputFolder + File.separator + apiDocPath);\n    }\n\n    @Override\n    public String modelDocFileFolder() {\n        return (outputFolder + File.separator + modelDocPath);\n    }\n\n    @Override\n    public String escapeUnsafeCharacters(String input) {\n        // There might be ways to inject code in Gdscript, but I don't see any for now.  (no /* */ comments)\n        // TODO: review this can of worms with someone knowledgeable\n        return input;","sourceCodeStart":293,"sourceCodeEnd":329,"githubUrl":"https://github.com/OpenAPITools/openapi-generator/blob/fcec517be3cf5b7964296bcba25fbc97541484e7/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GdscriptClientCodegen.java#L293-L329","documentation":"Error \"Only the HandlebarsEngineAdapter is supported for this generator\" thrown in OpenAPITools/openapi-generator.","triggerScenarios":"Thrown when a templating engine other than Handlebars is selected for the GDScript client generator. Use the default HandlebarsEngineAdapter.","commonSituations":"See trigger scenarios.","solutions":["Remove the custom template engine adapter option or set it to 'handlebars'; only the HandlebarsEngineAdapter is supported for this generator."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fcec517be3cf5b7964296bcba25fbc97541484e7","analyzedAt":"2026-08-22T11:13:11.613Z","schemaVersion":2},"datasetVersion":"2026-08-22T14:17:55.899Z"}