ruby-grape / grape-swagger

Add OAPI/swagger v2.0 compliant documentation to your grape API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Version 2.1.0 breaks current swagger docs (2.0.3 works correctly though)

americos opened this issue · comments

Hi, we recently updated our grape-swagger version from 2.0.3 to 2.1.0, but we noticed that in this latest version, our swagger docs look broken, as in not all params are shown (not entirely sure why but 2.0.3 works correctly).

We went through the code changes and we aren't sure why this appears to be broken.

what do you mean with it?

maybe it is related to this issue → #931 ?

Hello,
Basically we went from this:
Capture d’écran 2024-06-11 à 09 02 37
To this:
Capture d’écran 2024-06-11 à 09 03 02

now it looks ok to me, the content type is application/json → a body parameter type, not formData,
this was fixed → #927

Thanks for the reply @LeFnord, I looked at #927 and saw that there is a consumes property, after using that inside my desc block it worked as before.

Closing issue, thanks again.