{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/Sharathvc23/forgetproof/main/schemas/forget-me/v1/preview-request.schema.json",
  "title": "ForgetMe v1: POST {endpoint}/preview request",
  "description": "Scope item needs the opaque reference; scope account takes none and must be asked for explicitly. A missing reference never means account-wide. Strict: nothing else is accepted.",
  "type": "object",
  "properties": {
    "scope": { "$ref": "common.schema.json#/$defs/scope", "default": "item" },
    "reference": { "$ref": "common.schema.json#/$defs/reference" }
  },
  "additionalProperties": false,
  "oneOf": [
    { "properties": { "scope": { "const": "item" } }, "required": ["reference"] },
    { "properties": { "scope": { "const": "account" } }, "required": ["scope"], "not": { "required": ["reference"] } }
  ]
}
