Skip to content

generate dto even though it has a mapping #289

@hauner

Description

@hauner

Maybe it would be nice to create a mapping and still generate the dto for the OpenAPI type.

That way it would be possible to enhance (extend or wrap) the dto, by adding some "code" and use the enhanced version in the endpoint interface.

The mapping could use a new arrow operator to configure this

    - type: OpenApiType => io.openapiprocessor.JavaType # standard
    
    - type: OpenApiType +=> io.openapiprocessor.JavaType  # i.e.,  generate dto for OpenApiType and use mapping
    - type: OpenApiType -> io.openapiprocessor.JavaType
    - type: OpenApiType ~> io.openapiprocessor.JavaType

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions