openfga / api

Protocol Buffers used by OpenFGA
Apache License 2.0
18 stars 10 forks source link

fix: list object must have user define #59

Closed adriantam closed 1 year ago

adriantam commented 1 year ago

Description

Need to specify list object user field must be non empty string. Currently, non-specified user field are interpreted as empty string. With the change, ListObject with payload

 {
  "type": "resource",
  "relation": "reader"
}

will return

{
    "code": "validation_error",
    "message": "invalid ListObjectsRequest.User: value length must be between 1 and 512 bytes, inclusive"
}

References

Close https://github.com/openfga/api/issues/58

Review Checklist

jon-whit commented 1 year ago

Needs buf format to be run on the sources