winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Inaccurate default for 'useLatest' in DSC v3 schema

Open AmelBawa-msft opened this issue 2 months ago • 1 comments

Relevant area(s)

WinGet CLI, DSC Resource

Relevant command(s)

No response

Brief description of your issue

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

Check description section

AmelBawa-msft avatar Oct 27 '25 20:10 AmelBawa-msft

~~I don't seem to have dsc. Where do I find it?~~

Also seem unrelated to winget dscv3...

OK, found it:

  • https://github.com/PowerShell/DSC

eabase avatar Nov 14 '25 11:11 eabase