{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:tern:predictions-schema",
  "title": "TERN prediction file",
  "description": "A list of prediction objects. Structural validation only; does not establish correct SQL, unique question IDs, or complete coverage.",
  "type": "array",
  "minItems": 1,
  "items": {
    "type": "object",
    "additionalProperties": false,
    "required": ["id", "predicted_sql"],
    "properties": {
      "id": {"type": "string", "minLength": 1, "maxLength": 200, "pattern": "\\S"},
      "predicted_sql": {"type": "string", "minLength": 1, "maxLength": 100000, "pattern": "\\S"}
    }
  }
}
