{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://thesoftwarelens.com/saacip/0.2/schemas/record.schema.json",
  "$comment": "SaaCIP 0.2 (https://thesoftwarelens.com/saacip/). Licensed under the Apache License 2.0.",
  "title": "SaaCIP 0.2 Resident profile: record",
  "description": "One record read from a source (Resident profile, section 4).",
  "type": "object",
  "required": [
    "ts",
    "source",
    "service",
    "kind",
    "level",
    "body",
    "attributes"
  ],
  "properties": {
    "ts": {
      "$ref": "common.schema.json#/$defs/epochSeconds"
    },
    "source": {
      "type": "string"
    },
    "service": {
      "type": "string"
    },
    "kind": {
      "$ref": "common.schema.json#/$defs/recordKind"
    },
    "level": {
      "type": "string"
    },
    "body": {
      "type": "string"
    },
    "attributes": {
      "type": "object"
    }
  }
}
