mirror of
https://github.com/MuntashirAkon/android-debloat-list.git
synced 2025-10-10 06:57:23 +08:00
Add JSON schema for bloatware list and suggestions
This commit is contained in:
@@ -154,7 +154,7 @@ function validate_bloatware_item(array $item): int {
|
||||
fprintf($lint_writer, "{$item['id']}: Expected `warning` field to be a string, found: " . gettype($item['warning']) . "\n");
|
||||
++$error_count;
|
||||
}
|
||||
// `warning` is an optional string
|
||||
// `suggestions` is an optional string
|
||||
if (isset($item['suggestions'])) {
|
||||
if (gettype($item['suggestions']) != 'string') {
|
||||
fprintf($lint_writer, "{$item['id']}: Expected `suggestions` field to be a string, found: " . gettype($item['suggestions']) . "\n");
|
||||
|
Reference in New Issue
Block a user