{
    "$schema": "http://json-schema.org/schema",
    "$id": "AddCodeGenTarget",
    "title": "",
    "type": "object",
    "properties": {
        "projectName": {
            "type": "string",
            "description": "The name of the project to add the target to.",
            "alias": "p",
            "$default": {
                "$source": "projectName"
            },
            "x-prompt": "What is the name of the project you want to add the target to?",
            "x-dropdown": "projects"
        },

        "targetName": {
            "type": "string",
            "description": "The name of the target.",
            "alias": "t",
            "x-prompt": "What is the name of the target you want to add?",
            "default": "code-gen"
        },

        "template": {
            "description": "The type of code the target should generate",
            "alias": "t",
            "type": "string",
            "x-prompt": {
                "message": "The type of the generated code",
                "type": "list",
                "items": [
                    {
                        "value": "dotnet-api",
                        "label": "DotNet API"
                    },
                    {
                        "value": "typescript",
                        "label": "Typescript"
                    }
                ]
            }
        },

        "featureBoardProductName": {
            "type": "string",
            "description": "The name of the FeatureBoard product you want to pull the types from."
        },

        "subFolder": {
            "type": "string",
            "description": "The target sub-folder of the project .",
            "default": "./"
        }
    },
    "required": ["projectName", "template", "featureBoardProductName"]
}
