CommandDefinition: it is not possible to set an empty string as a DefaultValue for string parameter

Create issue
Issue #143 invalid
Evgeny Kralko repo owner created an issue

It is not possible to set an empty string as a DefaultValue for string parameter - it is always null.

@@ -1,25 +0,0 @@
{
    "Name": "Difference",
    "DisplayName": "View difference",
    "Description": "Run external difference tool",
    "IsService": true,
    "CmdFormatText": "git difftool --no-prompt {commit} -- {file}",
    "Category": "Git",
    "Parameters": [
        {
            "Name": "commit",
            "Description": "Commit",
            "Type": "String",
            "Domain": "Commit",
            "IsRequired": "No",
            "DefaultValue": ""
        },
        {
            "Name": "file",
            "Description": "File path",
            "Type": "String",
            "Domain": "FileSystemPath",
            "IsRequired": "Yes"
        }
    ]
}

Comments (1)

  1. Log in to comment