Daniel (dB.) Doubrovkine

Results 3341 comments of Daniel (dB.) Doubrovkine

> I used types with NilClass > `optional :image_uids, types: [Array[String], NilClass], default: nil` If this works, should we be injecting `NilClass` every time the list of `types` has an...

:+1: on clarifying the documentation, however I think what it was trying to say is that the default format is JSON if you don't specify, not that the default parameter...

@darren987469 was just in this code in #1810, maybe interested in taking a look at this too?

Right now I think this should work: ```ruby optional :status, types: [Boolean, String], values: ->(v) { v.is_a?(Boolean) ? v : %w(active hidden draft) } ``` To separate values we would...

So is the unexpected part the 404 when you try to get the `.json` one in the second example and get back a 404? The swagger docs are mounted within...

I am all for making this clear, but someone other than me needs to dig into this and figure out whether and what should be fixed.

Would be nice to add documentation to the README of how to do this, @btrepp want to volunteer?

@casperisfine Makes sense. Try adding an integration test in Grape and fix this?

Ok, I do like the general direction of this though. Strong type checking is better than `Array`.