{"record":{"id":"ec3882ebade14ad4","repo":"OpenAPITools/openapi-generator","slug":"unsupported-enum-property-naming-name","errorCode":null,"errorMessage":"Unsupported enum property naming: '{name}","messagePattern":"Unsupported enum property naming: '(.+?)","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractTypeScriptClientCodegen.java","lineNumber":1042,"sourceCode":"\n    protected boolean isEnumPropertyNamingReplaceSpecialChar() {\n        return enumPropertyNamingReplaceSpecialChar;\n    }\n\n    private String getNameUsingEnumPropertyNaming(String name) {\n        switch (getEnumPropertyNaming()) {\n            case original:\n                return name;\n            case camelCase:\n                return camelize(underscore(name), LOWERCASE_FIRST_LETTER);\n            case PascalCase:\n                return camelize(underscore(name));\n            case snake_case:\n                return underscore(name);\n            case UPPERCASE:\n                return underscore(name).toUpperCase(Locale.ROOT);\n            default:\n                throw new IllegalArgumentException(\"Unsupported enum property naming: '\" + name);\n        }\n    }\n\n    @Override\n    protected void addImport(CodegenModel m, String type) {\n        if (type == null) {\n            return;\n        }\n\n        String[] parts = splitComposedType(type);\n        for (String s : parts) {\n            if (needToImport(s)) {\n                m.imports.add(s);\n            }\n        }\n    }\n\n    /**","sourceCodeStart":1024,"sourceCodeEnd":1060,"githubUrl":"https://github.com/OpenAPITools/openapi-generator/blob/fcec517be3cf5b7964296bcba25fbc97541484e7/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractTypeScriptClientCodegen.java#L1024-L1060","documentation":"Error \"Unsupported enum property naming: '{name}\" thrown in OpenAPITools/openapi-generator.","triggerScenarios":"Thrown when the enum property naming option resolved for a TypeScript client generator is not a recognized/supported value. Use one of the documented enum naming styles.","commonSituations":"See trigger scenarios.","solutions":["Change the enumPropertyNaming option to a value supported by this generator; check the generator's config-options documentation for the allowed list."],"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"}