-
Notifications
You must be signed in to change notification settings - Fork 40
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
Nested exposures #22
Nested exposures #22
Conversation
.rubocop_todo.yml
Outdated
|
||
# Offense count: 2 | ||
Style/Documentation: | ||
Exclude: | ||
- 'spec/**/*' | ||
- 'test/**/*' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be removed
@@ -96,6 +96,23 @@ class Tag < Grape::Entity | |||
expose :name, documentation: { type: 'string', desc: 'Name' } | |||
end | |||
|
|||
class Nested < Grape::Entity | |||
expose :nested, documentation: { type: 'Object', desc: 'Nested entity' } do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please change one object
to Hash
, so others can see, this would be used synonym
@LeFnord done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@LeFnord i want release 0.2.0, but nested parsing it's a feature for |
@Bugagazavr go on … grape-entity support < 0.5 is always dropped |
#18
This feature implements a nested exposures parsing