mulesoft-labs / raml-for-jax-rs

This project is all about two way transformation of JAX-RS-annotated Java code to RAML API description and back.
Other
296 stars 181 forks source link

#421 Always use InputStream and StreamingOuput for type "any" #422

Open Kaiser1989 opened 4 years ago

Kaiser1989 commented 4 years ago

The solution is just a one liner.

Use InputStream and StreamingOutput, where ever type "any" is used. The current solution with java.lang.Object doesn't allow a real handling of this situations.

Imagine:

body:
      application/zip: 

Even json and other types can be handled with InputStream, but not with Object.