stoicflame / enunciate-openapi

OpenAPI3 module for Enunciate
Apache License 2.0
10 stars 10 forks source link

RequestBody for String input renders as schema string/binary #10

Closed jskov-jyskebank-dk closed 5 years ago

jskov-jyskebank-dk commented 6 years ago

It should just be plain string.

pnest commented 5 years ago

Looks like @RequestBody always is rendered as string/binary even when there is an dto in parameter

jskov-jyskebank-dk commented 5 years ago

I think I have a local fix for this that I just need to push out to this repository. I will see if I can find time to do it this week.

jskov-jyskebank-dk commented 5 years ago

This was actually fixed in c13f355f2850712b1818db89c37de5cafb4b23d3, released in 1.0.8.

@pnest if you see something else, I would like to see how your resource+DTO is annotated. My unit test covers request body for XML/DTO, InputStream, and String. So if it does not work for you, I must be missing something.

jskov-jyskebank-dk commented 5 years ago

Oooh. I take that back.

Sorry, the unit test was disabled. I never got around to fixing it. Will do now.

jskov-jyskebank-dk commented 5 years ago

Should be fixed now.