-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
entity documentation support for array of entities? #66
Comments
Does swagger actually support that? If so can you link the format that swagger expects. |
yeap swagger supports complex forms |
When I look at the swagger example i just see a text block where it will let me paste in a bunch of JSON. Do you have an example where it is building a complex form. |
@chebyte The actual grape-swagger release supports this feature: expose :emails, documentation: {type: 'HQ::Entities::Email', is_array: true } |
I'm trying to figure out the same thing. The 'is_array' flag doesn't change anything on the swagger side. |
Just submitted a pull request for grape-swagger that fixes the issue for the 'is_array' on return entity: https://github.com/tim-vandecasteele/grape-swagger/pull/206 |
Perhaps, this issue should be closed already. |
Yes. |
hi there I have the following grape-entites
the problem that I need that swagger generate the UI with the complex form I means client has many emails
what type I need to use? I added array but it show me just as string field like this
https://www.evernote.com/shard/s143/sh/a53f78c8-5599-4148-811f-e6b7617cd13a/419383ac0d5d9e5bac0a06278ac481da
The text was updated successfully, but these errors were encountered: