{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/mmerterden/multi-agent-pipeline/pipeline/schemas/secret-patterns.schema.json",
  "title": "Secret-shaped test values",
  "description": "secret-patterns.json: per provider, how to build a value shaped like that provider's token (prefix, fill character repeated len times, suffix), for tests of the secret detectors. A len of 0 with an empty fill is a fixed string.",
  "type": "object",
  "additionalProperties": false,
  "required": ["providers"],
  "properties": {
    "$comment": { "type": "string" },
    "providers": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": ["id", "prefix", "fill", "len", "suffix"],
        "properties": {
          "id": { "type": "string", "pattern": "^[a-z0-9-]+$" },
          "prefix": { "type": "string" },
          "fill": { "type": "string", "maxLength": 1 },
          "len": { "type": "integer", "minimum": 0 },
          "suffix": { "type": "string" }
        }
      }
    }
  }
}
