Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default value for ConfigureBehavior #5061

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 8 additions & 32 deletions schemas/JSON/settings/settings.schema.0.2.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,7 @@
"progressBar": {
"description": "Progress bar display style",
"type": "string",
"enum": [
"accent",
"rainbow",
"retro",
"sixel",
"disabled"
]
"enum": ["accent", "rainbow", "retro", "sixel", "disabled"]
},
"anonymizeDisplayedPaths": {
"description": "Replaces some known folder paths with their respective environment variable",
Expand All @@ -50,13 +44,7 @@
"level": {
"description": "Preferred logging level",
"type": "string",
"enum": [
"verbose",
"info",
"warning",
"error",
"critical"
]
"enum": ["verbose", "info", "warning", "error", "critical"]
},
"channels": {
"description": "The logging channels to enable",
Expand Down Expand Up @@ -90,10 +78,7 @@
"scope": {
"description": "The scope of a package install",
"type": "string",
"enum": [
"user",
"machine"
],
"enum": ["user", "machine"],
"default": "user"
},
"locale": {
Expand All @@ -113,13 +98,7 @@
"items": {
"uniqueItems": true,
"type": "string",
"enum": [
"neutral",
"x64",
"x86",
"arm64",
"arm"
],
"enum": ["neutral", "x64", "x86", "arm64", "arm"],
"minItems": 1,
"maxItems": 4
}
Expand Down Expand Up @@ -205,7 +184,8 @@
"defaultModuleRoot": {
"description": "The default root directory where PowerShell modules are installed to when applying a configuration.",
"type": "string",
"maxLength": 32767
"maxLength": 32767,
"default": "%LOCALAPPDATA%/Microsoft/Winget/Configuration/Modules/"
Gijsreyn marked this conversation as resolved.
Show resolved Hide resolved
}
}
},
Expand Down Expand Up @@ -238,11 +218,7 @@
"downloader": {
"description": "Control which download code is used for packages",
"type": "string",
"enum": [
"default",
"wininet",
"do"
],
"enum": ["default", "wininet", "do"],
"default": "default"
},
"doProgressTimeoutInSeconds": {
Expand Down Expand Up @@ -302,7 +278,7 @@
"fonts": {
"description": "Enable support for managing fonts",
"type": "boolean",
"default": false
"default": false
}
}
}
Expand Down
Loading