Skip to content

Support for automatic conversion to inline classes or a better way than transform(::ValueClass) #304

@maksym-moroz

Description

@maksym-moroz

Is your feature request related to a problem? Please describe.
It would be possible to figure out if the mapping can be done, even if the mapping is not matching. Maybe it can be a flag users can opt in to get automatic conversion

Describe the solution you'd like
My Dto model can include something like id: Long that I want to expose as inline class Id(value: Long) from my domain. I would love to just do it via to::id fromProperty from::id without needing transform

Describe alternatives you've considered
Just using a more verbose form doing it manually

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions