Skip to content

Commit

Permalink
loosen pattern, no additional properties
Browse files Browse the repository at this point in the history
  • Loading branch information
moodysalem committed Jul 22, 2020
1 parent 9c9b83c commit 5d685db
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/tokenlist.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"patch": 0
}
],
"additionalProperties": false,
"properties": {
"major": {
"type": "integer",
Expand Down Expand Up @@ -63,6 +64,7 @@
"TagDefinition": {
"type": "object",
"description": "Definition of a tag that can be associated with a token via its identifier",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
Expand Down Expand Up @@ -93,6 +95,7 @@
"TokenInfo": {
"type": "object",
"description": "Metadata for a single token in a token list",
"additionalProperties": false,
"properties": {
"chainId": {
"type": "integer",
Expand Down Expand Up @@ -125,7 +128,7 @@
"description": "The name of the token",
"minLength": 1,
"maxLength": 40,
"pattern": "^[ \\w+.]+$",
"pattern": "^[ \\w+.'-]+$",
"examples": [
"USD Coin"
]
Expand Down Expand Up @@ -171,6 +174,7 @@
}
},
"type": "object",
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
Expand Down

0 comments on commit 5d685db

Please sign in to comment.