Rinat Sharipov
06/14/2024, 11:06 AM1:04PM FTL failed to write schema error="rpc error: code = InvalidArgument desc = invalid allowed relation `smile2impress/employee with allowed_appointment_type`: the length of the unpacked is not equal to the provided input"
definition smile2impress/employee {}
definition smile2impress/role {
relation member: smile2impress/employee
}
definition smile2impress/application {
relation user: smile2impress/role#member
permission use = user
}
definition smile2impress/organization {
// appoitments management
relation appointment_creator: smile2impress/role#member
relation blacklisted_on_appointment_creation: smile2impress/employee
relation test: smile2impress/employee with allowed_appointment_type
}
caveat allowed_appointment_type(appointment_type string, allowed_appointment_types list<string>) {
appointment_type in allowed_appointment_types
}
do you know what can be wrong ? in playground everything was working finevroldanbet
06/14/2024, 12:29 PMsmile2impress
?Rinat Sharipov
06/14/2024, 12:41 PMpermission system
?Rinat Sharipov
06/14/2024, 12:41 PMvroldanbet
06/14/2024, 1:11 PMJoey
06/14/2024, 4:43 PMJoey
06/14/2024, 4:43 PMsmile2impress/
as wellJoey
06/14/2024, 4:44 PM