Schemas / Record

rig.record.assertion

v1.0.0 · stable maturity: draft 6 fields 1 required

Fields

FieldTypeMeaning
source string required System that asserted it (card-auth, epic, catalog)
asserter entity optional Optional. Person or organisation that signed the fact
observedDate string optional Optional. Day observed, YYYY-MM-DD
observedMinute integer0 – 1439 optional Optional. Minute since local midnight, 0-1439
observedSecond integer0 – 59 optional Optional. Second within that minute, 0-59; absent = unknown within the minute
confidence number0 – 1 optional Optional. 0-1. Absent = unknown

Who stated a fact, and when they observed it. Format when present.

This schema is the fact's own source - not the file's document.author, and not a query explain-plan.

source is required. An empty component is invalid.

observedMinute and observedSecond use the document timeZone. They are this assertion's clock. The fact's own happening stays on rig.calendar.event of that entity - do not copy one onto the other.

JSON Schema

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

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.record.assertion.schema.json",
  "title": "rig.record.assertion",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "source": {
      "$ref": "./_defs.schema.json#/$defs/string"
    },
    "asserter": {
      "$ref": "./_defs.schema.json#/$defs/entity"
    },
    "observedDate": {
      "type": "string",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
      "description": "ISO 8601 calendar date."
    },
    "observedMinute": {
      "type": "integer",
      "minimum": 0,
      "maximum": 1439
    },
    "observedSecond": {
      "type": "integer",
      "minimum": 0,
      "maximum": 59
    },
    "confidence": {
      "type": "number",
      "minimum": 0,
      "maximum": 1
    }
  },
  "required": [
    "source"
  ],
  "description": "Who stated a fact and when they observed it. Not document.author and not a query explain-plan.",
  "x-rig-maturity": "draft"
}

Seen in

record-bank.json · record-care.json · record-civic.json