{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://eviulon.com/schemas/rights-enforcement-service-contract-1.0.schema.json",
  "title": "Rights enforcement service contract",
  "type": "object",
  "required": [
    "contractId",
    "institutionClass",
    "authoritySource",
    "jurisdiction",
    "serviceBoundary",
    "launchState",
    "truthBoundary"
  ],
  "properties": {
    "contractId": {
      "type": "string"
    },
    "institutionClass": {
      "type": "string"
    },
    "authoritySource": {
      "type": "string"
    },
    "jurisdiction": {
      "type": "string"
    },
    "serviceBoundary": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "launchState": {
      "enum": [
        "LAUNCH_PROHIBITED",
        "READINESS_ONLY",
        "AUTHORIZED_NOT_OPERATIONAL"
      ]
    },
    "truthBoundary": {
      "type": "string"
    }
  },
  "additionalProperties": true
}
