{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/postpone-app/json-schema/postpone-app-linkset-schema.json",
  "title": "Linkset",
  "description": "RFC 9727 linkset. Each entry anchors a resource and points at its description and documentation.",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/postpone-app-openapi.json#/components/schemas/Linkset",
  "type": "object",
  "properties": {
    "linkset": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "anchor": {
            "type": "string",
            "format": "uri"
          },
          "service-desc": {
            "$ref": "#/$defs/LinksetTargets"
          },
          "service-doc": {
            "$ref": "#/$defs/LinksetTargets"
          }
        },
        "required": [
          "anchor"
        ]
      }
    }
  },
  "required": [
    "linkset"
  ],
  "$defs": {
    "LinksetTargets": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "href": {
            "type": "string",
            "format": "uri"
          },
          "type": {
            "type": "string",
            "description": "Media type of the target."
          }
        },
        "required": [
          "href"
        ]
      }
    }
  }
}