{
    "$schema": "http://json-schema.org/draft-07/schema",
    "$id": "https://chaosinitiative.com/cas/schemas/subsystems/steamworks.json",

    "type": "object",
    "title": "Steamworks Publisher",
    "description": "Publishes builds to Steamworks.",
    
    "required": ["tooldir", "scripts"],
    "properties": {
        "tooldir": {
            "type": "string",
            "title": "Tool Directory",
            "description": "The folder where the Steamworks Content Builder is located.",
            "examples": ["$(path.devtools)/buildsys/steam/contentbuilder"]
        },
        "scripts": {
            "type": "array",
            "title": "Scripts",
            "description": "Array of Content Builder script names (without .vdf) to run.",
            "examples": [["shared", "windows"]]
        },
        "username": {
            "type": "string",
            "title": "Username",
            "description": "Username to use to log in to Steamworks."
        },
        "password": {
            "type": "string",
            "title": "Password",
            "description": "Password to use to log in to Steamworks.",
            "sensitive": true
        }
    }
}