{
    "schema": "http://json-schema.org/schema",
    "$id": "NewMfeSchematic",
    "title": "New Unily MFE Schematic",
    "type": "object",
    "description": "Create a new Unily MFE workspace",
    "properties": {
        "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "pattern": "^[a-z-]*$",
            "description": "The name of the project.",
            "x-prompt": "Project name - This will set the workspace directory name accordingly:",
            "$default": {
                "$source": "argv",
                "index": 0
            }
        },
        "prefix": {
            "type": "string",
            "minLength": 1,
            "pattern": "^[a-z]*$",
            "description": "Selector prefix for all Angular directives with the 'selector' property.",
            "x-prompt": "Angular directive selector prefix - This will enforce a linting rule across the project requiring the set value as a prefix for the 'selector' property:",
            "$default": {
                "$source": "argv",
                "index": 1
            }
        },
        "port": {
            "type": "string",
            "pattern": "^[0-9]*$",
            "description": "The port number the server is set to listen on.",
            "x-prompt": "Webpack server port number:",
            "default": "4201",
            "$default": {
                "$source": "argv",
                "index": 2
            }
        }
    },
    "required": [
        "name",
        "prefix",
        "port"
    ]
}