update validate_json.sh: not all packages need dependencies

This commit is contained in:
Antranig Vartanian 2025-10-05 14:16:39 +04:00
parent 5bf0a1065c
commit dc2d564f01
No known key found for this signature in database
GPG key ID: DE3998662D59F21C

View file

@ -89,10 +89,6 @@ validate_json() {
fi fi
fi fi
fi fi
if jq -e '.dependencies | type != "object"' "$json" >/dev/null 2>/dev/null; then
perror "$json invalid dependencies field (must be object)"
errors=$((errors + 1))
fi
if ! jq -e '.build | type == "array"' "$json" >/dev/null 2>/dev/null; then if ! jq -e '.build | type == "array"' "$json" >/dev/null 2>/dev/null; then
perror "$json invalid build field (must be array)" perror "$json invalid build field (must be array)"
errors=$((errors + 1)) errors=$((errors + 1))