Skip to content

Commit 488ea2d

Browse files
committed
updating validate-registry
1 parent e51fe8f commit 488ea2d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

schema/registry.schema.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@
3939
},
4040
"rpcURL": {
4141
"type": "string",
42-
"format": "uri",
4342
"description": "RPC endpoint URL with port",
44-
"pattern": "^https?://.*:(443|80|[0-9]{1,5})$"
43+
"pattern": "^https?://[a-zA-Z0-9.-]+:(443|80|[0-9]{1,5})$",
44+
"minLength": 1
4545
},
4646
"restURL": {
4747
"type": "string",
48-
"format": "uri",
4948
"description": "REST API endpoint URL with port",
50-
"pattern": "^https?://.*:(443|80|[0-9]{1,5})$"
49+
"pattern": "^https?://[a-zA-Z0-9.-]+:(443|80|[0-9]{1,5})$",
50+
"minLength": 1
5151
},
5252
"explorerURL": {
5353
"$ref": "#/definitions/ExplorerURL"

0 commit comments

Comments
 (0)