Skip to content

Commit

Permalink
fix: role.fromIndex should be +ve integer (#161)
Browse files Browse the repository at this point in the history
* fix: role.fromIndex should be +ve integer

* use uint in role.fromIndex proto
  • Loading branch information
gmaclennan authored Feb 19, 2024
1 parent 44256f0 commit fba15b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion proto/role/v1.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ message Role_1 {
Common_1 common = 1;

bytes roleId = 5;
int32 fromIndex = 6;
uint32 fromIndex = 6;
}
3 changes: 2 additions & 1 deletion schema/role/v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
},
Expand Down

0 comments on commit fba15b6

Please sign in to comment.