Skip to content
This repository has been archived by the owner on Jan 4, 2022. It is now read-only.

Commit

Permalink
fix: json schema for signaturePublicKeyId (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Shuplenkov authored Apr 16, 2020
1 parent 97b8596 commit 2a58299
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion schema/stateTransition/stateTransitionBase.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"signaturePublicKeyId": {
"type": ["integer", "null"],
"minimum": 1
"minimum": 0
},
"signature": {
"type": "string",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ describe('validateStateTransitionStructureFactory', () => {
expect(extensionFunctionMock).to.be.calledOnceWith(rawStateTransition);
});

it('should not be < 1', async () => {
rawStateTransition.signaturePublicKeyId = 0;
it('should not be < 0', async () => {
rawStateTransition.signaturePublicKeyId = -1;

const result = await validateStateTransitionStructure(rawStateTransition);

Expand Down

0 comments on commit 2a58299

Please sign in to comment.