From 3aba5dddbecaf20436af4897a6b46bbf5b47017f Mon Sep 17 00:00:00 2001 From: ALPAC-4 <81249838+ALPAC-4@users.noreply.github.com> Date: Tue, 22 Oct 2024 15:35:05 +0900 Subject: [PATCH] feat: add chain.schema requirements (#202) --- chain.schema.json | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/chain.schema.json b/chain.schema.json index 3c54599..df2a2b9 100644 --- a/chain.schema.json +++ b/chain.schema.json @@ -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", @@ -105,7 +112,8 @@ "type": "array", "items": { "$ref": "#/$defs/fee_token" - } + }, + "minContains": "1" } }, "additionalProperties": false @@ -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",