{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://objectsgrid.com/.well-known/objects-catalog/ObjectMeta/v1/schema.json",
  "title": "ObjectMeta",
  "description": "Objects Grid ObjectMeta Object. System-managed metadata attached to Grid Objects.",
  "type": "object",
  "properties": {
    "objectVersion": {
      "type": "integer",
      "description": "The object's version: the storage generation of its last write. It changes on every write and only grows, but not by 1; compare it, never compute with it. The object's ETag is this value in quotes; send it as If-Match to write only if the object has not changed. GET <path>/{id}?version=<objectVersion> reads that version, and <url>?version=<objectVersion> references it; a property marked x-objectsgrid-version: pinned always references the newest version at the time of the write.",
      "minimum": 0
    },
    "objectType": {
      "type": "string",
      "description": "Canonical type name of the owning object (e.g. 'Inventory').",
      "minLength": 1
    },
    "namespace": {
      "type": "string",
      "description": "Tenant / namespace that owns this object.",
      "minLength": 1
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "ISO-8601 timestamp of when the object was first created."
    },
    "createdBy": {
      "type": "string",
      "description": "Identity (user or service account) that created the object.",
      "minLength": 1
    },
    "lastUpdatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "ISO-8601 timestamp of the most recent update."
    },
    "lastUpdatedBy": {
      "type": "string",
      "description": "Identity that performed the most recent update.",
      "minLength": 1
    },
    "lastUpdateCorrelationID": {
      "type": "string",
      "description": "Correlation / trace ID associated with the last write operation.",
      "minLength": 1
    },
    "redactedFields": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "uniqueItems": true,
      "description": "Only in responses: the fields of this object the ABAC policy hides from the reader, left out of it (e.g. cost, offers.price, for the price of every offer). Never stored; ignored on writes."
    }
  },
  "additionalProperties": false
}
