Skip to content

Commit

Permalink
Merge pull request #255 from pancakeswap/feature/json-schema
Browse files Browse the repository at this point in the history
chore: add list json schema
  • Loading branch information
ChefMomota authored Sep 21, 2023
2 parents 9255cb8 + c9f61b0 commit 7c01745
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"json.schemas": [
{
"fileMatch": ["src/**/*.json"],
"schema": {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Token Name, should align to Token Contract"
},
"symbol": {
"type": "string",
"description": "Token Symbol, should align to Token Contract"
},
"address": {
"type": "string",
"description": "Token address, should be checksum address"
},
"chainId": {
"type": "integer",
"description": "chainId, integer"
},
"decimals": {
"type": "integer",
"description": "Token decimals, should be align with Token Contract"
},
"logoURI": {
"type": "string",
"description": "Token logo uri, should be rounded and transparent bg png"
}
},
"required": ["name", "symbol", "address", "chainId", "decimals", "logoURI"]
}
}
}
]
}

0 comments on commit 7c01745

Please sign in to comment.