File tree Expand file tree Collapse file tree
src/main/java/io/weaviate/client6/v1/api/rbac Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ enum Kind implements JsonEnum<Kind> {
3636 GROUPS ("groups" ),
3737 ROLES ("roles" ),
3838 NODES ("nodes" ),
39+ NAMESPACES ("namespaces" ),
3940 TENANTS ("tenants" ),
4041 REPLICATE ("replicate" ),
4142 USERS ("users" ),
Original file line number Diff line number Diff line change 33import java .io .IOException ;
44import java .util .Arrays ;
55import java .util .List ;
6+ import java .util .Objects ;
67
78import com .google .gson .Gson ;
89import com .google .gson .TypeAdapter ;
@@ -43,6 +44,9 @@ public T read(JsonReader in) throws IOException {
4344 if (role .permissions == null ) {
4445 return (T ) role ;
4546 }
47+ // Permissions which are not known to this client version
48+ // will be returned as null; we should drop them before merging.
49+ role .permissions .removeIf (Objects ::isNull );
4650 return (T ) new Role (role .name (), Permission .merge (role .permissions ));
4751 }
4852 };
You can’t perform that action at this time.
0 commit comments