Skip to content

Commit 47e9f68

Browse files
samuvethChaituVR
andauthored
fix(statement schema): Increase min length and add maxlength (#887)
* Raise min length and add maxlength * Bump version * Update package.json * Fix test --------- Co-authored-by: Chaitanya <[email protected]>
1 parent 4b15337 commit 47e9f68

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@snapshot-labs/snapshot.js",
3-
"version": "0.5.3",
3+
"version": "0.5.4",
44
"repository": "snapshot-labs/snapshot.js",
55
"license": "MIT",
66
"main": "dist/snapshot.cjs.js",

src/schemas/statement.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,14 @@
1010
"type": "string",
1111
"format": "long",
1212
"title": "About",
13-
"minLength": 1,
13+
"minLength": 40,
1414
"maxLength": 140
1515
},
1616
"statement": {
1717
"type": "string",
1818
"format": "long",
19-
"title": "Statement"
19+
"title": "Statement",
20+
"maxLength": 10000
2021
}
2122
},
2223
"required": ["about"],

test/examples/statement.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"about": "About me",
2+
"about": "About me lorem ipsum dolor sit amet, consectetur",
33
"statement": ""
44
}

0 commit comments

Comments
 (0)