Skip to content
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

Open
FunctionalHacker opened this issue May 12, 2023 · 0 comments
Open

Invalid 'customTypeMapping' format: string> #986

FunctionalHacker opened this issue May 12, 2023 · 0 comments

Comments

@FunctionalHacker
Copy link

FunctionalHacker commented May 12, 2023

Hi, I'm trying to map all instances of java.util.collection<MyClass> to Record<string,string> and I'm encountering this error

Execution generate of goal cz.habarta.typescript-generator:typescript-generator-maven-plugin:3.2.1263:generate failed: Invalid 'customTypeMapping' format: string>

My configuration

<configuration>
    <customTypeMappings>
        java.util.Collection&lt;MyClass&gt;:Record&lt;string,string&gt;
    </customTypeMappings>
</configuration>

I also tried the alternative syntax

<configuration>
    <customTypeMappings>
        java.util.Collection[MyClass]:Record[string,string]
    </customTypeMappings>
</configuration>

Also tried with Map

<configuration>
    <customTypeMappings>
        java.util.Collection[MyClass]:Map[string,string]
    </customTypeMappings>
</configuration>

The only thing I've gotten to work is mapping it to string in TypeScript

<configuration>
    <customTypeMappings>
        java.util.Collection[MyClass]:string
    </customTypeMappings>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant