{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://cyberplanetary.org/protocol/schema.json",
  "title": "Proposed Cyberplanetary descriptor \u2014 experimental draft v0.1",
  "description": "Proposed shape only; no claim of implemented interoperability or verified availability.",
  "type": "object",
  "required": [
    "protocol",
    "id",
    "name",
    "entries"
  ],
  "properties": {
    "protocol": {
      "const": "cyberplanetary-draft/0.1"
    },
    "id": {
      "type": "string",
      "format": "uri",
      "pattern": "^https://"
    },
    "name": {
      "type": "string",
      "minLength": 1
    },
    "description": {
      "type": "string"
    },
    "entries": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "required": [
          "label",
          "url"
        ],
        "properties": {
          "label": {
            "type": "string",
            "minLength": 1
          },
          "url": {
            "type": "string",
            "format": "uri",
            "pattern": "^https://"
          },
          "interface": {
            "type": "string"
          }
        },
        "additionalProperties": true
      }
    },
    "extensions": {
      "type": "object",
      "propertyNames": {
        "format": "uri",
        "pattern": "^https://"
      },
      "additionalProperties": true
    }
  },
  "additionalProperties": true
}
