Skip to content

Commit

Permalink
feat: add chain.schema requirements (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
ALPAC-4 authored Oct 22, 2024
1 parent c54a442 commit 3aba5dd
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions chain.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
"title": "Cosmos Chain",
"description": "Cosmos Chain.json is a metadata file that contains information about a cosmos sdk based chain.",
"type": "object",
"required": ["chain_name", "chain_id", "bech32_prefix", "network_type"],
"required": [
"chain_name",
"chain_id",
"bech32_prefix",
"network_type",
"apis",
"fees"
],
"properties": {
"$schema": {
"type": "string",
Expand Down Expand Up @@ -105,7 +112,8 @@
"type": "array",
"items": {
"$ref": "#/$defs/fee_token"
}
},
"minContains": "1"
}
},
"additionalProperties": false
Expand Down Expand Up @@ -474,18 +482,21 @@
},
"apis": {
"type": "object",
"required": ["rpc", "rest"],
"properties": {
"rpc": {
"type": "array",
"items": {
"$ref": "#/$defs/endpoint"
}
},
"minContains": "1"
},
"rest": {
"type": "array",
"items": {
"$ref": "#/$defs/endpoint"
}
},
"minContains": "1"
},
"api": {
"type": "array",
Expand Down

0 comments on commit 3aba5dd

Please sign in to comment.