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
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