How to have custom/complex Datatype for api parameter
How to have my custom datatype Model & Model Schema visible in Swagger UI similar to: http://petstore.swagger.wordnik.com/#!/user/createUser_post_1 ?
With https://github.com/wordnik/swagger-core/wiki/Datatypes , seems like model API has to be defined somewhere.
Is there any code example with this implementation?
+1
+1
does anyone know how to have this defined in grape first?
There's no way to define complex input types in grape, and that is the problem. Even if we try to extract the type schemas from params blocks here, we'll have no way to name the types, or do anything sane about the possible duplication.
why it is still open? any fix for this? I think that is very useful use model scheme and has body param support!
so +1
There's some discussion around this in #49.