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

Missing " in list-users documentation #934

Open
6 tasks done
lupeterm opened this issue Jan 15, 2025 · 2 comments · May be fixed by #935
Open
6 tasks done

Missing " in list-users documentation #934

lupeterm opened this issue Jan 15, 2025 · 2 comments · May be fixed by #935
Labels
bug Something isn't working content Issues related to document's content documentation Improvements or additions to documentation

Comments

@lupeterm
Copy link

Checklist

  • I have looked into the README and have not found a suitable solution or answer.
  • I have looked into the documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have upgraded to the latest version of OpenFGA and the issue still persists.
  • I have searched the OpenFGA Community and have not found a suitable solution or answer.
  • I agree to the terms within the OpenFGA Code of Conduct.

Description

Hi, inside the code block for curl on https://openfga.dev/docs/getting-started/perform-list-users#02-calling-list-users-api, there is a " missing between "type: "document".
Should be "type": "document"

OpenFGA version

independent thereof

How are you running OpenFGA?

In Docker

What datastore are you using?

Postgres

OpenFGA Flags

no

Logs

curl -X POST $FGA_API_URL/stores/$FGA_STORE_ID/list-users \
  -H "content-type: application/json" \  
  -d '{
        "authorization_model_id": "01JHMQSGPDRJSJMDW3NAEF2YTG",
        "object": {
          "type: "document",
          "id": "planning",
        },
        "relation": "reader",
        "user_filters": [
          {
            "type": "user"
          }
        ]
    }'
{"code":"validation_error","message":"invalid character 'd' after object key"}```
@lupeterm lupeterm added the bug Something isn't working label Jan 15, 2025
@rhamzeh rhamzeh transferred this issue from openfga/openfga Jan 15, 2025
@rhamzeh rhamzeh added documentation Improvements or additions to documentation content Issues related to document's content labels Jan 15, 2025
@rhamzeh
Copy link
Member

rhamzeh commented Jan 15, 2025

Thanks @lupeterm - if you can send in a PR, we'll be very grateful. Otherwise we'll take a look as soon as we can.

@lupeterm lupeterm linked a pull request Jan 16, 2025 that will close this issue
4 tasks
@lupeterm
Copy link
Author

@rhamzeh see #935

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working content Issues related to document's content documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants