-
suppose i have a openapi.yaml whith :
What i want is to build mapping.yaml in order to return a Mono<ResponseEntity<byte[]>>. How can i achieve that ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
looks like a workaround is to exclude the endpoint
and write the controller method yourself. or you could try to replace the
to generate the
note that the processor generates If for some reason it must be
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
looks like
Mono<ResponseEntity<byte[]>>
isn't something the processor can generate at the moment. The mapping parser doesn't handle primitive types.a workaround is to exclude the endpoint
and write the controller method yourself.
or
you could try to replace the
byte[]
with something likejava.nio.ByteBuffer
(as an endpoint specific mapping). But I don't know if Spring can serialize this out of the box.to generate the
Mono
andResponseEntity
you need: