Skip to content

Commit 4cc20b8

Browse files
committed
chore: add r2 validation
1 parent 82db221 commit 4cc20b8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

schemas/tokens.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"logoURI": {
1414
"type": "string",
15-
"pattern": "^(https://raw.githubusercontent.com/berachain/metadata/[^\\s]+|https://(assets|coin-images).coingecko.com/[^\\s]+|https://res.cloudinary.com/duv0g402y/[^\\s]+)$"
15+
"pattern": "^(https://raw.githubusercontent.com/berachain/metadata/[^\\s]+|https://(assets|coin-images).coingecko.com/[^\\s]+|https://res.cloudinary.com/duv0g402y/[^\\s]+|https://[^/]+\\.r2\\.cloudflarestorage\\.com/[^\\s]+|https://[^/]+\\.r2\\.dev/[^\\s]+)$"
1616
},
1717
"tags": {
1818
"type": "object",
@@ -55,7 +55,7 @@
5555
},
5656
"logoURI": {
5757
"type": "string",
58-
"pattern": "^(https://raw.githubusercontent.com/berachain/metadata/[^\\s]+|https://(assets|coin-images).coingecko.com/[^\\s]+|https://res.cloudinary.com/duv0g402y/[^\\s]+)$"
58+
"pattern": "^(https://raw.githubusercontent.com/berachain/metadata/[^\\s]+|https://(assets|coin-images).coingecko.com/[^\\s]+|https://res.cloudinary.com/duv0g402y/[^\\s]+|https://[^/]+\\.r2\\.cloudflarestorage\\.com/[^\\s]+|https://[^/]+\\.r2\\.dev/[^\\s]+)$"
5959
},
6060
"base64": {
6161
"type": "string"

schemas/validators.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"logoURI": {
2323
"type": "string",
24-
"pattern": "^(https://raw.githubusercontent.com/berachain/metadata/[^\\s]+|https://(assets|coin-images).coingecko.com/[^\\s]+|https://res.cloudinary.com/duv0g402y/[^\\s]+)$"
24+
"pattern": "^(https://raw.githubusercontent.com/berachain/metadata/[^\\s]+|https://(assets|coin-images).coingecko.com/[^\\s]+|https://res.cloudinary.com/duv0g402y/[^\\s]+|https://[^/]+\\.r2\\.cloudflarestorage\\.com/[^\\s]+|https://[^/]+\\.r2\\.dev/[^\\s]+)$"
2525
},
2626
"name": {
2727
"type": "string",

schemas/vaults.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
},
5959
"logoURI": {
6060
"type": "string",
61-
"pattern": "^(https://raw.githubusercontent.com/berachain/metadata/[^\\s]+|https://(assets|coin-images).coingecko.com/[^\\s]+|https://res.cloudinary.com/duv0g402y/[^\\s]+)$"
61+
"pattern": "^(https://raw.githubusercontent.com/berachain/metadata/[^\\s]+|https://(assets|coin-images).coingecko.com/[^\\s]+|https://res.cloudinary.com/duv0g402y/[^\\s]+|https://[^/]+\\.r2\\.cloudflarestorage\\.com/[^\\s]+|https://[^/]+\\.r2\\.dev/[^\\s]+)$"
6262
},
6363
"url": {
6464
"type": "string",
@@ -106,7 +106,7 @@
106106
},
107107
"logoURI": {
108108
"type": "string",
109-
"pattern": "^(https://raw.githubusercontent.com/berachain/metadata/[^\\s]+|https://(assets|coin-images).coingecko.com/[^\\s]+|https://res.cloudinary.com/duv0g402y/[^\\s]+)$"
109+
"pattern": "^(https://raw.githubusercontent.com/berachain/metadata/[^\\s]+|https://(assets|coin-images).coingecko.com/[^\\s]+|https://res.cloudinary.com/duv0g402y/[^\\s]+|https://[^/]+\\.r2\\.cloudflarestorage\\.com/[^\\s]+|https://[^/]+\\.r2\\.dev/[^\\s]+)$"
110110
},
111111
"url": {
112112
"type": "string",

0 commit comments

Comments
 (0)