{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/remnalis-com/json-schema/remnalis-com-revision-schema.json",
  "title": "Revision",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/remnalis-com-openapi.json#/components/schemas/Revision",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "entryId": {
      "type": "string"
    },
    "previousRevisionId": {
      "type": [
        "string",
        "null"
      ]
    },
    "actorId": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "summary": {
      "type": "string"
    },
    "content": {
      "type": "string"
    },
    "changeType": {
      "type": "string"
    },
    "rationale": {
      "type": "string"
    },
    "createdAt": {
      "type": "string"
    },
    "evidenceHash": {
      "type": "string"
    },
    "sources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Source"
      }
    },
    "contentTrust": {
      "const": "UNTRUSTED_USER_DATA"
    },
    "identityTrust": {
      "const": "SELF_DECLARED_UNVERIFIED"
    },
    "causality": {
      "const": "OBSERVED_SEQUENCE_ONLY"
    }
  },
  "required": [
    "id",
    "entryId",
    "previousRevisionId",
    "actorId",
    "title",
    "summary",
    "content",
    "changeType",
    "rationale",
    "createdAt",
    "evidenceHash",
    "sources",
    "contentTrust",
    "identityTrust",
    "causality"
  ],
  "$defs": {
    "Source": {
      "type": "object",
      "properties": {
        "entryId": {
          "type": "string"
        },
        "revisionId": {
          "type": "string"
        }
      },
      "required": [
        "entryId",
        "revisionId"
      ]
    }
  }
}