Skip to content

Commit 702bbb7

Browse files
committed
fix: add schemas
1 parent cef11e0 commit 702bbb7

File tree

2 files changed

+35
-4
lines changed

2 files changed

+35
-4
lines changed

env.schema.json

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,32 @@
66
"$ref": "secrets.schema.json"
77
}
88
],
9-
"properties": {},
10-
"required": []
9+
"properties": {
10+
"CLOUDFLARE_ACCOUNT_ID": {
11+
"type": "string",
12+
"default": "5e0333335a21846798fafca9e55e044f",
13+
"description": "CF Account ID"
14+
},
15+
"CLOUDFLARE_ZONE_ID": {
16+
"type": "string",
17+
"default": "1fdb113875a922922b03e3cebc7138f1",
18+
"description": "CF Zone (domain) ID"
19+
},
20+
"POLYKEY_NETWORK_STATUS_HOST": {
21+
"type": "string",
22+
"default": "mainnet.polykey.com",
23+
"description": "PKNS Host"
24+
},
25+
"POLYKEY_NETWORK_STATUS_PORT": {
26+
"type": "number",
27+
"default": 443,
28+
"description": "PKNS Port"
29+
},
30+
"POLYKEY_NETWORK_STATUS_PROT": {
31+
"type": "string",
32+
"default": "https",
33+
"description": "PKNS Protocol"
34+
}
35+
},
36+
"required": ["CLOUDFLARE_ACCOUNT_ID"]
1137
}

secrets.schema.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
{
22
"type": "object",
33
"$id": "file:///secrets.schema.json",
4-
"properties": {},
5-
"required": []
4+
"properties": {
5+
"CLOUDFLARE_API_TOKEN": {
6+
"type": "string",
7+
"description": "CF API token used for wrangler and editing"
8+
}
9+
},
10+
"required": ["CLOUDFLARE_API_TOKEN"]
611
}

0 commit comments

Comments
 (0)