{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://objectsgrid.com/.well-known/objects-catalog/Reference/v1/schema.json",
  "title": "Reference",
  "description": "A pointer to another object: a JSON-LD node reference. Writes send at_id, plus at_type for an external URL; for an ObjectsGrid URL the service derives id and at_type from at_id, whatever was sent. Which types a property may point to is its x-objectsgrid-rangeIncludes.",
  "type": "object",
  "properties": {
    "at_id": {
      "description": "The object's ObjectsGrid URL, https://apis.objectsgrid.com/<path>/<id>, with ?version=<n> on a pinned reference; or an external URL",
      "type": "string",
      "format": "uri",
      "minLength": 1
    },
    "id": {
      "description": "The referenced object's id; null for an external URL",
      "type": [
        "string",
        "null"
      ],
      "readOnly": true
    },
    "at_type": {
      "description": "The referenced object's type: from the URL path for an ObjectsGrid URL (anything sent is overwritten); for an external URL, the Schema.org type the client sent, or null",
      "type": [
        "string",
        "null"
      ],
      "pattern": "^[A-Z][A-Za-z0-9]{0,63}$"
    }
  },
  "required": [
    "at_id"
  ],
  "additionalProperties": false
}
