{
  "$defs": {
    "Variation": {
      "additionalProperties": false,
      "properties": {
        "changes": {
          "additionalProperties": true,
          "description": "Scenario fields to set on top of the base scenario",
          "minProperties": 1,
          "title": "Changes",
          "type": "object"
        },
        "name": {
          "pattern": "^[A-Za-z][A-Za-z0-9_-]{0,63}$",
          "title": "Name",
          "type": "string"
        }
      },
      "required": [
        "name",
        "changes"
      ],
      "title": "Variation",
      "type": "object"
    }
  },
  "$id": "mokili.sweep/1",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "A base scenario and its variations, run and compared to the base.",
  "properties": {
    "base": {
      "pattern": "^sha256:[0-9a-f]{64}$",
      "title": "Base",
      "type": "string"
    },
    "confidence": {
      "default": 0.95,
      "exclusiveMaximum": 1,
      "exclusiveMinimum": 0.5,
      "title": "Confidence",
      "type": "number"
    },
    "name": {
      "minLength": 1,
      "title": "Name",
      "type": "string"
    },
    "schema": {
      "const": "mokili.sweep/1",
      "title": "Schema",
      "type": "string"
    },
    "variations": {
      "items": {
        "$ref": "#/$defs/Variation"
      },
      "minItems": 1,
      "title": "Variations",
      "type": "array"
    }
  },
  "required": [
    "schema",
    "name",
    "base",
    "variations"
  ],
  "title": "Sweep",
  "type": "object"
}
