{
    "$schema": "http://json-schema.org/schema",
    "id": "SloMappingType",
    "title": "Create an SLO Mapping type for use with Polaris SLO Framework",
    "type": "object",
    "properties": {
        "name": {
            "type": "string",
            "description": "The name of the SLO Mapping type.",
            "$default": {
                "$source": "argv",
                "index": 0
            },
            "x-prompt": "What class name would you like to use for the SLO Mapping type class? 'SloMapping' will be appended automatically."
        },
        "project": {
            "type": "string",
            "description": "The name of the publishable library project, to which the SLO Mapping type should be added.",
            "alias": "p",
            "x-prompt": "To which project should the SLO Mapping type be added? This must be a publishable library project."
        },
        "directory": {
            "type": "string",
            "description": "The directory within the project's src folder, where the SLO Mapping type should be created.",
            "alias": "d",
            "default": "slo-mappings"
        },
        "createLibProject": {
            "type": "boolean",
            "description": "Create a publishable library project for the SLO Mapping type.",
            "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"
    ]
}
