Skip to content

Commit 21f6fbc

Browse files
authored
Add JSON schemas (eco-stake#432)
* Add initial schemas * Apply schema to all existing files * Add Github workflows to validate schemas * Update workflow * Test broken JSON * Adjust path matching * Change validator action * Adjust file matcher * Test * Remove $id * Remove debug * Fix profile test * Re-add debug * Test without defined schema * Fix test
1 parent fe1f040 commit 21f6fbc

File tree

380 files changed

+537
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

380 files changed

+537
-0
lines changed

.github/workflows/validate.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on: [pull_request, workflow_dispatch]
2+
name: Validate JSON schema
3+
jobs:
4+
validate:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- name: Validate profile.json schema
9+
uses: walbo/[email protected]
10+
with:
11+
files: ./*/profile.json
12+
schema: profile.schema.json
13+
schema-version: draft-07
14+
fail-on-missing-schema: true
15+
- name: Validate chains.json schema
16+
uses: walbo/[email protected]
17+
with:
18+
files: ./*/chains.json
19+
schema: chains.schema.json
20+
schema-version: draft-07
21+
fail-on-missing-schema: true

01node/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "01node",
34
"chains": [
45
{

01node/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "01node",
34
"identity": "7BDD4C2E94392626"
45
}

0basevc/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "0base.vc",
34
"chains": [
45
{

0basevc/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "0base.vc",
34
"identity": "67A577430DBBCEE0"
45
}

20mb/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "20MB | Restake ✅",
34
"chains": [
45
{

20mb/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "20MB | Restake ✅",
34
"identity": "73D35BA1E132EDBC"
45
}

3tekos/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "3Tekos",
34
"chains": [
45
{

3tekos/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "3Tekos",
34
"identity": "2856A1B148985E19"
45
}

Active Nodes/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "Active Nodes",
34
"chains": [
45
{

Active Nodes/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "Active Nodes",
34
"identity": "A2EA7DE76AD57E1A"
45
}

ChemicalBros/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "Chemical Bros by Bites Digital",
34
"chains": [
45
{

ChemicalBros/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "Chemical Bros by Bites Digital",
34
"identity": "D540D0234B3AE1B8"
45
}

Chihuahua/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "Chihuahua",
34
"chains": [
45
{

Chihuahua/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "Chihuahua",
34
"identity": "FEF740F1760E1B56"
45
}

Citizen Cosmos/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "Citizen Cosmos",
34
"chains": [
45
{

Citizen Cosmos/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "Citizen Cosmos",
34
"identity": "DF0280597A20ACFE"
45
}

Coding everyday/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "Coding Everyday",
34
"chains": [
45
{

Cosmos Space/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "Cosmos Spaces ☮️ 💜 ⚛️",
34
"chains": [
45
{

Cosmos Space/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "Cosmos Spaces ☮️ 💜 ⚛️",
34
"identity": "06B033BAC39DA21C"
45
}

DH Node/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "[🇮🇹 🇪🇺] DH Node",
34
"chains": [
45
{

DH Node/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "[🇮🇹 🇪🇺] DH Node",
34
"identity": "E347370C12C792C3"
45
}

Darkavatar23/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "Darkavatar23",
34
"chains": [
45
{

Darkavatar23/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "Darkavatar23",
34
"identity": "F7CE575A4CB93E17"
45
}

DomaNodes/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "Doma🏠Nodes",
34
"chains": [
45
{

DomaNodes/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "Doma🏠Nodes",
34
"identity": "83C2C996D500CF34"
45
}

Four-Moons/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "Four Moons",
34
"chains": [
45
{

Four-Moons/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "Four Moons",
34
"identity": ""
45
}

GalaxyStaking-Jupiter/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "GalaxyStaking - Jupiter 🌑",
34
"chains": [
45
{

GalaxyStaking-Jupiter/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "GalaxyStaking - Jupiter 🌑",
34
"identity": "CE96041EC98A5DDA"
45
}

GalaxyStaking-Neptune/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "GalaxyStaking - Neptune 🌑",
34
"chains": [
45
{

GalaxyStaking-Neptune/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "GalaxyStaking - Neptune 🌑",
34
"identity": "CE96041EC98A5DDA"
45
}

GalaxyStaking-Saturn/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "GalaxyStaking - Saturn 🌑",
34
"chains": [
45
{

GalaxyStaking-Saturn/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "GalaxyStaking - Saturn 🌑",
34
"identity": "CE96041EC98A5DDA"
45
}

GalaxyStaking-Uranus/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "GalaxyStaking - Uranus 🌑",
34
"chains": [
45
{

GalaxyStaking-Uranus/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "GalaxyStaking - Uranus 🌑",
34
"identity": "CE96041EC98A5DDA"
45
}

L0vd2/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "L0vd2 ❤️",
34
"chains": [
45
{

L0vd2/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "L0vd2 ❤️",
34
"identity": "A7F72AB704FC64AB"
45
}

Liker.Social/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "Liker.Social",
34
"chains": [
45
{

Liker.Social/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "Liker.Social",
34
"identity": "4DAC9DD9DEF536BE"
45
}

Maneki Neko 1/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "Maneki Neko 1",
34
"chains": [
45

Maneki Neko 1/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "Maneki Neko 1",
34
"identity": "FD7EFA77BA92F16E"
45
}

Maneki Neko 2/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "Maneki Neko 2",
34
"chains": [
45

Maneki Neko 2/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "Maneki Neko 2",
34
"identity": "DDE22A590FA11060"
45
}

MarsUnion 👨‍🚀/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "MarsUnion 👨‍🚀",
34
"chains": [
45
{

MarsUnion 👨‍🚀/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "MarsUnion 👨‍🚀",
34
"identity": "1E443FE6DFD73544"
45
}

MediumPower/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "MediumPower",
34
"chains": [
45
{

MediumPower/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "MediumPower",
34
"identity": "35D25CB151EC1A2F"
45
}

NMnode/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "NMnode",
34
"chains": [
45
{

NMnode/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "NMnode",
34
"identity": "1F998A5E56C51A91"
45
}

PrivacyAdvocates/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "PrivacyAdvocates",
34
"chains": [
45
{

PrivacyAdvocates/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "PrivacyAdvocates",
34
"identity": ""
45
}

Safe Block/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "Safe Block",
34
"chains": [
45
{

Safe Block/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "Safe Block",
34
"identity": "88E458382B70944B"
45
}

StakeRun/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "StakeRun",
34
"identity": "6EAA935D0E26A462"
45
}

Vault Staking/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "Vault Staking | Slash Protected",
34
"chains": [
45
{

Vault Staking/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "Vault Staking | Slash Protected",
34
"identity": "1F3068FC9F81343C"
45
}

Witval/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "Witval",
34
"chains": [
45
{

Witval/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "Witval",
34
"identity": "51468B615127273A"
45
}

Yoitsu/chains.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../chains.schema.json",
23
"name": "Yoitsu",
34
"chains": [
45
{

Yoitsu/profile.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"$schema": "../profile.schema.json",
23
"name": "Yoitsu",
34
"identity": "B6CF41D1879E8002"
45
}

0 commit comments

Comments
 (0)