-
Notifications
You must be signed in to change notification settings - Fork 344
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
Keto expand REST API does not parse query parameter max-depth
correctly
#704
Comments
max-depth
max-depth
correctly
True, as it is a query parameter it should not be required but come with a default. Should have the same default value everywhere, so CLI, REST handler, and gRPC handler. |
@zepatrik I would also like to look into this issue but not until the other issue I am working on is resolved. |
Hi, I would like to work on this issue. Is there anyone else working on it ? |
Fix ory#704 `max-depth` not working as optional as mentioned in [docs](https://www.ory.sh/keto/docs/reference/rest-api#expand-a-relation-tuple).
I have added a PR #755 that hopefully solves this issue. The This was an unintended error but worked just as required 😆 I made few changes that clean it for better understanding. Happy Hacktoberfest to Everyone 😄 |
Fix ory#704 is not an optional parameter. Added error handlers,(handler.go#L80) docs and tests(ehandler_tests.go#L38). Fix sdkClient maxDepth pointer. Rebased Commit history.
Describe the bug
Keto exapnd REST API will return http code 400 when there is not
max-depth
in query parameter.Reproducing the bug
keto/internal/expand/handler.go
Lines 77 to 82 in d766968
Expected behavior
It should behave as doc says that
max-depth
is not required.Or it should be consistent with cli behavior, that's to say, has a default value
Environment
The text was updated successfully, but these errors were encountered: