-
Notifications
You must be signed in to change notification settings - Fork 365
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 scopes #198
Comments
This could be cool. When I get time I will look into this. |
Hi. I was just looking into this, any workaround? |
👍 on this
|
Perhaps something like this:
and then do some sort of merge into the existing hash def set_param(hash, param)
key = param[:name]
return hash if !respond_to?(key) || in_path?(key)
scope = param[:scope]
if scope
if scope.is_a?(Hash)
# somehow merge into hash
else
hash[scope.to_s] ||= {}
hash[scope.to_s][key] = send(key)
end
else
hash[key] = send(key)
end
hash
end rspec_api_documentation/lib/rspec_api_documentation/dsl/endpoint.rb Lines 149 to 158 in 3c2f23d
|
Closed with #221 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello.
It would be great to do
http://jsonapi.org/format/#crud-updating-relationships
The text was updated successfully, but these errors were encountered: