Packages: fix parsing of JSON config; fix wording of json_schema

This commit is contained in:
李通洲
2024-04-16 10:12:11 +08:00
parent a6639d7211
commit e63dfdd8b1
2 changed files with 30 additions and 3 deletions
+29 -3
View File
@@ -1576,9 +1576,35 @@
"description": "List installed package managers and count of installed packages"
},
"disabled": {
"description": "A colon separated list of package managers to be disabled when detecting",
"type": "string",
"default": "winget"
"description": "List of package managers to be disabled when detecting",
"type": "array",
"items": {
"type": "string",
"enum": [
"am",
"apk",
"brew",
"choco",
"dpkg",
"emerge",
"eopkg",
"flatpak",
"macports",
"nix",
"opkg",
"pacman",
"paludis",
"pkg",
"pkgtool",
"rpm",
"scoop",
"snap",
"winget",
"xbps"
],
"uniqueItems": true
},
"default": ["winget"]
},
"key": {
"$ref": "#/$defs/key"
+1
View File
@@ -276,6 +276,7 @@ void ffParsePackagesJsonObject(FFPackagesOptions* options, yyjson_val* module)
}
#undef FF_TEST_PACKAGE_NAME
}
continue;
}
}