{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/toku/json-schema/toku-patch-beneficiary-metadata-payload-schema.json",
  "title": "PatchBeneficiaryMetadataPayload",
  "description": "Additive metadata update: the provided keys are merged into the beneficiary's existing metadata (top-level), overwriting collisions and preserving the rest.\n\n``metadata`` is required — a missing field is a client error, not an empty patch. Keys are written as nested ``metadata.<key>`` paths for an atomic per-key merge, so a key must be non-empty and may not contain ``.`` or a NUL character or start with ``$`` (those are MongoDB path/operator syntax and would otherwise fail the update at write time).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/toku-beneficiaries-api-openapi.yml#/components/schemas/PatchBeneficiaryMetadataPayload",
  "properties": {
    "metadata": {
      "additionalProperties": true,
      "description": "Claves que se fusionan en la metadata del Beneficiary.",
      "title": "Metadata",
      "type": "object"
    }
  },
  "required": [
    "metadata"
  ],
  "type": "object"
}