From 1f4e84d58e02064d5069875e5957727546a6e971 Mon Sep 17 00:00:00 2001 From: ALPAC-4 Date: Thu, 31 Oct 2024 18:35:10 +0900 Subject: [PATCH] make rest and rpc endpoint start with https:// --- chain.schema.json | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/chain.schema.json b/chain.schema.json index df2a2b9..5473b21 100644 --- a/chain.schema.json +++ b/chain.schema.json @@ -487,21 +487,21 @@ "rpc": { "type": "array", "items": { - "$ref": "#/$defs/endpoint" + "$ref": "#/$defs/secureEndpoint" }, "minContains": "1" }, "rest": { "type": "array", "items": { - "$ref": "#/$defs/endpoint" + "$ref": "#/$defs/secureEndpoint" }, "minContains": "1" }, "api": { "type": "array", "items": { - "$ref": "#/$defs/endpoint" + "$ref": "#/$defs/secureEndpoint" } }, "grpc": { @@ -694,6 +694,31 @@ }, "additionalProperties": false }, + "secureEndpoint": { + "type": "object", + "required": ["address"], + "properties": { + "address": { + "type": "string", + "format": "uri", + "pattern": "^https://." + }, + "provider": { + "type": "string" + }, + "archive": { + "type": "boolean", + "default": false + }, + "authorizedUser": { + "type": "string" + }, + "indexForSkip": { + "type": "number" + } + }, + "additionalProperties": false + }, "explorer": { "type": "object", "properties": {