{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://thesoftwarelens.com/saacip/0.2/schemas/enrol-request.schema.json",
  "$comment": "SaaCIP 0.2 (https://thesoftwarelens.com/saacip/). Licensed under the Apache License 2.0.",
  "title": "SaaCIP 0.2 HTTP binding: enrol request",
  "description": "POST <base>/enrol/ (HTTP binding, Resident profile section 6, shared with the Hosted profile). Sent once, with the enrolment token the hirer issued.",
  "type": "object",
  "required": [
    "enrolment_token",
    "protocol_versions",
    "profile",
    "version",
    "terms"
  ],
  "properties": {
    "enrolment_token": {
      "type": "string",
      "minLength": 1
    },
    "protocol_versions": {
      "type": "array",
      "items": {
        "$ref": "common.schema.json#/$defs/protocol"
      },
      "minItems": 1,
      "description": "The versions the capability speaks, preferred first."
    },
    "profile": {
      "$ref": "common.schema.json#/$defs/profile"
    },
    "version": {
      "type": "string",
      "description": "The capability's own version."
    },
    "terms": {
      "$ref": "terms.schema.json"
    },
    "ext": {
      "$ref": "common.schema.json#/$defs/ext"
    }
  }
}
