Skip to content

Invalid 'customTypeMapping' format: string> #986

@FunctionalHacker

Description

@FunctionalHacker

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions