{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "records — starter dataset (replace)",
  "description": "Schema for the factory's starter dataset. Convention (studio data CI): schema/<name>.schema.json validates data/<name>.{json,yml,csv} and data/<name>/*. Replace alongside data/records.json.",
  "type": "array",
  "items": {
    "type": "object",
    "additionalProperties": false,
    "required": ["id", "title", "date"],
    "properties": {
      "id": { "type": "string", "minLength": 1 },
      "title": { "type": "string", "minLength": 1 },
      "date": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$" },
      "notes": { "type": "string" }
    }
  }
}
