Skip to content
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

Merged
merged 3 commits into from
Mar 2, 2017
Merged

Nested exposures #22

merged 3 commits into from
Mar 2, 2017

Conversation

kzaitsev
Copy link
Collaborator

#18

This feature implements a nested exposures parsing

screen shot 2017-02-26 at 22 31 20
screen shot 2017-02-26 at 22 31 30


# Offense count: 2
Style/Documentation:
Exclude:
- 'spec/**/*'
- 'test/**/*'
Copy link
Member

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
Copy link
Member

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

@kzaitsev
Copy link
Collaborator Author

@LeFnord done

Copy link
Member

@LeFnord LeFnord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kzaitsev
Copy link
Collaborator Author

@LeFnord i want release 0.2.0, but nested parsing it's a feature for grape-entity >= 0.5 versions, so maybe to drop support for 0.4?

@LeFnord
Copy link
Member

LeFnord commented Feb 27, 2017

@Bugagazavr go on … grape-entity support < 0.5 is always dropped

@kzaitsev kzaitsev merged commit 8fc53c6 into master Mar 2, 2017
@kzaitsev kzaitsev deleted the nested-exposures branch March 2, 2017 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants