{
    "$schema": "http://json-schema.org/schema",
    "$id": "ComposedMetricType",
    "title": "Create a ComposedMetricType for use with Polaris SLO Framework",
    "type": "object",
    "properties": {
        "name": {
            "type": "string",
            "description": "",
            "$default": {
                "$source": "argv",
                "index": 0
            },
            "x-prompt": "What interface name would you like to use for the ComposedMetric's values? The ComposedMetricType will use this name and append the suffix 'Type'."
        },
        "project": {
            "type": "string",
            "description": "The name of the publishable library project, to which the ComposedMetricType should be added.",
            "alias": "p",
            "x-prompt": "To which project should the ComposedMetricType be added? This must be a publishable library project."
        },
        "directory": {
            "type": "string",
            "description": "The directory within the project's src folder, where the ComposedMetricType should be created.",
            "alias": "d",
            "default": "metrics"
        },
        "createLibProject": {
            "type": "boolean",
            "description": "Create a publishable library project for the ComposedMetricType.",
            "default": false
        },
        "importPath": {
            "type": "string",
            "description": "The import path of the publishable library, e.g., '@my-org/my-lib' (only used and required if --createLibProject is true)."
        }
    },
    "required": [
        "name",
        "project"
    ]
}
