-
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
Subclasses keep the parent's .documentation? #121
Comments
Can you please describe what result are you expected from the above setup? |
I would expect |
Yes, this is what I would expect too. I think this is a bug, the problem is most probably in the implementation of Grape::Entity#documentation which calls #documentation for the superclass too and merges with the subclass' documentation. Can someone more knowledgeable confirm that this is indeed a bug? I would be more than happy to add a failing test and a fix for it. |
Yes, looks like a bug to me. |
I'm not sure if I'm using it wrong, or if it's bugged, but if I do this:
The results aren't quite what you'd expect in regards to
.documentation
:As a result, it currently appears to be impossible to use Entities for parameter reuse, without resorting to copypasting
expose …
lines into a separate class - makingunexpose
rather useless.As a side note, it doesn't appear to be
unexpose
itself that's broken, asexpose
in a subclass similarly has no effect.The text was updated successfully, but these errors were encountered: