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

Attempt to fix required properties for nested attributes #31

Merged
merged 7 commits into from
Nov 19, 2017

Conversation

Kukunin
Copy link
Contributor

@Kukunin Kukunin commented Nov 8, 2017

There is another bug: required: true is not supported for nested attributes. I added test case but have no idea how to fix it.

It seems there is a flaw in design: there is part in grape-swagger that wraps entity and adds required key along with properties. But if an attribute is nested, then grape-swagger-entity wraps it with the same structure as grape-swagger, but without required.

Both gems does the same job, and it feels wrong

@Kukunin
Copy link
Contributor Author

Kukunin commented Nov 16, 2017

This PR can be merged as well. I resolved conflicts but Github hasn't picked them up yet

@kzaitsev kzaitsev merged commit 960f73c into ruby-grape:master Nov 19, 2017
@Kukunin Kukunin deleted the nested_requires branch November 20, 2017 19:27
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