Skip to content

Inaccurate default for 'useLatest' in DSC v3 schema #5833

Description

@AmelBawa-msft

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DSC-ResourceIssue related to DSC ResourcesIssue-BugIt either shouldn't be doing this or needs an investigation.

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions