renderbug/verify-configs.py
Torrie Fischer ea876e243d
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
platformio: add json validation step to fs builder
2023-02-18 17:47:25 +01:00

14 lines
337 B
Python

Import("env")
import fnmatch
import os
def verify_json(source, target, env):
for root, dirnames, files in os.walk("data"):
for file in files:
if file.endswith(".json"):
if (env.Execute("json_verify < " + root + '/' + file)):
Exit(1)
env.AddPreAction("buildfs", verify_json)