-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid 'customTypeMapping' format: string> #986
Comments
I have a similar issue. <customTypeMapping>java.util.function.Supplier[List[Double]]:() => number[]</customTypeMapping> but I get the error "Execution generate of goal cz.habarta.typescript-generator:typescript-generator-maven-plugin:3.2.1263:generate failed: Failed to parse configured custom type mapping 'java.util.function.Supplier[List[Double]]:() => number[]': java.lang.ClassNotFoundException: java.util.function.Supplier[List[Double]]". It just works if I only include one level of generic parameters: <customTypeMapping>java.util.function.Supplier[List]:() => number[]</customTypeMapping> Using version 3.2.1263. |
Using <customTypeMapping>java.util.function.Supplier<List>:() => number[]</customTypeMapping> When trying to include the complete type: <customTypeMapping>java.util.function.Supplier<List<Double>>:() => number[]</customTypeMapping> I get a similar error: Execution generate of goal cz.habarta.typescript-generator:typescript-generator-maven-plugin:3.2.1263:generate failed: Failed to parse configured custom type mapping 'java.util.function.Supplier<List>:() => number[]': java.lang.ClassNotFoundException: java.util.function.Supplier<List>. However, this time it recognizes the |
And I found another issue. Consider I want to map every <customTypeMappings>java.util.List[Product]:ProductDTO[]</customTypeMappings> However, it ignores the generic type parameter (Product) and replaces all Lists by a |
Hey @FunctionalHacker and @vojtechhabarta I've just sent the PR #1072, which is a proposal to fix the issues reported here. |
Hi, I'm trying to map all instances of
java.util.collection<MyClass>
toRecord<string,string>
and I'm encountering this errorMy configuration
I also tried the alternative syntax
Also tried with
Map
The only thing I've gotten to work is mapping it to
string
in TypeScriptThe text was updated successfully, but these errors were encountered: