gobberwarts
02/23/2024, 8:43 PMdefinition ns/organization {}
definition ns/project{}
definition ns/resource {
relation shared_with: ns/organization#project | ns/project | ns/project:*
}
And the following all work as expected in the playground:
ns/resource:TestResourceID#shared_with@ns/project:*
ns/resource:TestResourceID#shared_with@ns/project:AcmeCorp_Coyote
ns/resource:TestResourceID#shared_with@ns/organization:ParkerIndustries#project
However, when a request creating a resource where the subject's object ID is ParkerIndustries#project
, I get an error back saying the ID doesn't match the expected regex.
{\"code\":3,\"message\":\"invalid WriteRelationshipsRequest.Updates[0]: embedded message failed validation | caused by: invalid RelationshipUpdate.Relationship: embedded message failed validation | caused by: invalid Relationship.Subject: embedded message failed validation | caused by: invalid SubjectReference.Object: embedded message failed validation | caused by: invalid ObjectReference.ObjectId: value does not match regex pattern \\\"^(([a-zA-Z0-9/_|\\\\\\\\-=+]{1,})|\\\\\\\\*)$\\\"\",\"details\":[]}
Any advice 🙏gobberwarts
02/23/2024, 9:19 PM