From 3242afa60bbd7eabf15fdd8acab4d29eec8e02d6 Mon Sep 17 00:00:00 2001 From: Gregor MacLennan Date: Mon, 20 Nov 2023 12:14:45 +0900 Subject: [PATCH 1/2] fix: role.fromIndex should be +ve integer --- schema/role/v1.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/schema/role/v1.json b/schema/role/v1.json index cd52416b..ab9e4a8d 100644 --- a/schema/role/v1.json +++ b/schema/role/v1.json @@ -13,7 +13,8 @@ "description": "Unique identifier for role assigned to device with auth core ID equal to `docId` of this record" }, "fromIndex": { - "type": "number", + "type": "integer", + "minimum": 0, "description": "This is the index of the auth core that this role applies to (identified by the `docId`) to apply this role from. E.g. documents in the auth core assigned this role from this index will be evaluated according to this role." } }, From 089a81c07af1fb863cf31ffb74579994bcb1acee Mon Sep 17 00:00:00 2001 From: Gregor MacLennan Date: Thu, 15 Feb 2024 15:13:32 +0000 Subject: [PATCH 2/2] use uint in role.fromIndex proto --- proto/role/v1.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto/role/v1.proto b/proto/role/v1.proto index 4f21a6e0..fe39dede 100644 --- a/proto/role/v1.proto +++ b/proto/role/v1.proto @@ -14,5 +14,5 @@ message Role_1 { Common_1 common = 1; bytes roleId = 5; - int32 fromIndex = 6; + uint32 fromIndex = 6; }