{
  "$id": "urn:mars:schema:v1:federation-peer",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "A peer node in the MARS federation.",
  "properties": {
    "agreementIds": {
      "description": "Active federation agreements with this peer.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "endpoint": {
      "description": "REST API endpoint.",
      "type": "string"
    },
    "grpcEndpoint": {
      "description": "gRPC endpoint (if available).",
      "type": [
        "string",
        "null"
      ]
    },
    "lastSeen": {
      "description": "When this peer was last seen.",
      "format": "date-time",
      "type": [
        "string",
        "null"
      ]
    },
    "peerDid": {
      "description": "DID of the peer registry.",
      "type": "string"
    }
  },
  "required": [
    "peerDid",
    "endpoint"
  ],
  "title": "FederationPeer",
  "type": "object"
}
