Schemas / Record

rig.record.incident

v1.0.0 · stable maturity: draft 4 fields 2 required

Fields

FieldTypeMeaning
kind string required Kind as written (fire, flood)
status enumreported · active · contained · closed required reported / active / contained / closed
openedDate string optional Optional. Day reported, YYYY-MM-DD
place entity optional Optional. Place entity. Address and geo stay on that entity

A reported happening in the world. Format when present.

Fires, floods, and command incidents land here. A case file about a person is rig.record.case. A calendar happening is rig.calendar.event.

kind and status are required.

The title is rig.meta.named. Members point at this incident with rig.record.concerns. Do not put a members array here. Do not put a location string on this component.

JSON Schema

Resolves at https://rig.works/schemas/rig.record.incident.schema.json — raw file.

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.record.incident.schema.json",
  "title": "rig.record.incident",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "kind": {
      "$ref": "./_defs.schema.json#/$defs/string"
    },
    "status": {
      "type": "string",
      "enum": [
        "reported",
        "active",
        "contained",
        "closed"
      ]
    },
    "openedDate": {
      "type": "string",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
      "description": "ISO 8601 calendar date."
    },
    "place": {
      "$ref": "./_defs.schema.json#/$defs/entity"
    }
  },
  "required": [
    "kind",
    "status"
  ],
  "description": "A reported happening in the world. Address and geo stay on place. Members point here with rig.record.concerns.",
  "x-rig-maturity": "draft"
}

Seen in

record-civic.json