{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://bsfproject.com/data/schemas/claim.schema.json",
  "title": "BSF Project traceable claim",
  "type": "object",
  "required": ["id", "statement", "status", "sourceIds", "topics"],
  "properties": {
    "id": { "type": "string", "pattern": "^claim-[a-z0-9-]+$" },
    "statement": { "type": "string" },
    "qualification": { "type": "string" },
    "status": {
      "type": "string",
      "enum": ["supported", "context", "needs-source", "disputed"]
    },
    "sourceIds": {
      "type": "array",
      "minItems": 0,
      "items": { "type": "string" }
    },
    "topics": {
      "type": "array",
      "items": { "type": "string" }
    },
    "siteRefs": {
      "type": "array",
      "items": { "type": "string" },
      "description": "Paths or anchors on bsfproject.com that use this claim"
    }
  }
}
