openfga / api

Protocol Buffers used by OpenFGA
Apache License 2.0
19 stars 14 forks source link

refactor: remove min from contextual tuples #39

Closed craigpastro closed 2 years ago

craigpastro commented 2 years ago

Description

In Check, we may want to include the contextual tuple field, but with no contextual tuples as in:

{
    "authorization_model_id": "01GFVBCAW5QAJVWRMDC82H4Z7D",
    "tuple_key": {
        "object": "repo:openfga/openfga",
        "relation": "reader",
        "user": "anne"
    },
    "contextual_tuples": {
        "tuple_keys": null
    }
}

This PR is the change that allows us to do this.

Why do this? It helps in automation.

References

Review Checklist