{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://interchange.stellarview.net/schemas/i3_event.schema.json",
  "title": "An event from Simplify i3 as the hub accepts it at POST /hooks/i3. The shape is the Interchange's own; how i3 sends events is to confirm (Q-35).",
  "type": "object",
  "required": [
    "event",
    "record_id",
    "at"
  ],
  "additionalProperties": false,
  "properties": {
    "_label": {
      "type": "string"
    },
    "event": {
      "type": "string",
      "description": "An i3 event name in mappings/events.json i3_events."
    },
    "record_id": {
      "type": "string",
      "minLength": 1
    },
    "to": {
      "type": "string"
    },
    "from": {
      "type": "string"
    },
    "by": {
      "type": "string"
    },
    "remedy": {
      "type": "string"
    },
    "item": {
      "type": "string"
    },
    "asset_ref": {
      "type": "string"
    },
    "changed": {
      "type": "string"
    },
    "at": {
      "type": "string",
      "format": "date-time"
    }
  }
}
