You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically, when that line says that if a parameter is a Hash, it will not be included. In a personal branch, I changed the logic to read as follows (emphasis on the added parenthesis):
This makes it so that a Hash or an Array is not included if it is not documented instead of not including Hashes ever. Before I make a PR upstream, I was curious if this was intentional. I'm using this in conjunction with grape-entity and the problem I faced was when I call ObjectEntity.documentation as a required param like as follows:
While parsing through to see why my Hash was not appearing, I found this line: https://github.com/ruby-grape/grape-swagger/blob/master/lib/grape-swagger/endpoint.rb#L234
Basically, when that line says that if a parameter is a Hash, it will not be included. In a personal branch, I changed the logic to read as follows (emphasis on the added parenthesis):
This makes it so that a Hash or an Array is not included if it is not documented instead of not including Hashes ever. Before I make a PR upstream, I was curious if this was intentional. I'm using this in conjunction with
grape-entity
and the problem I faced was when I callObjectEntity.documentation
as a required param like as follows:With
ObjectEntity
looking like this:The
object_id
appears just fine, but theobject_hash
does not.It is worth mentioning that if I state my parameters as follows, it works fine, but doesn't let me have path paramenters appear as I would prefer:
I'm using the Master branch of
grape-swagger
with all dependencies updated to the latest versions.The text was updated successfully, but these errors were encountered: