#5833·winget-cli

Inaccurate default for 'useLatest' in DSC v3 schema

Author: AmelBawa-msftCreated Oct 27, 2025Updated Sep 23, 2026
LabelsIssue-BugDSC-Resource

Relevant area(s)

WinGet CLI, DSC Resource

Relevant command(s)

No response

Brief description of your issue

json
PS C:\> dsc resource schema -r "Microsoft.WinGet/Package" -o pretty-json
{
...
    "useLatest": {
      "default": "false",  // Should be: false instead of "false"
      "description": "Indicate that the latest available version of the package should be installed.",
      "type": "boolean"
    },
...
}

Reference: https://github.com/microsoft/winget-cli/blob/cf43c6a28d1256dcec185e04eafb09d195503809/src/AppInstallerCLICore/Commands/DscPackageResource.cpp#L25C9-L25C54

Steps to reproduce

Check description section

Expected behavior

Check description section

Actual behavior

Check description section

Environment

bash
Check description section