{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/keyshortcuts-net/json-schema/keyshortcuts-net-school-license-schema.json",
  "title": "SchoolLicense",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/keyshortcuts-net-openapi.json#/components/schemas/SchoolLicense",
  "type": "object",
  "required": [
    "id",
    "organization",
    "type",
    "scope",
    "active",
    "paymentStatus",
    "startsAt",
    "expiresAt",
    "cancelAtPeriodEnd",
    "revoked",
    "canManageBilling",
    "resources",
    "shareUrl"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "organization": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "scope": {
      "type": "string"
    },
    "active": {
      "type": "boolean"
    },
    "paymentStatus": {
      "type": "string"
    },
    "startsAt": {
      "type": "string"
    },
    "expiresAt": {
      "type": "string"
    },
    "cancelAtPeriodEnd": {
      "type": "boolean"
    },
    "revoked": {
      "type": "boolean"
    },
    "canManageBilling": {
      "type": "boolean"
    },
    "shareUrl": {
      "type": "string"
    },
    "resources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SchoolResource"
      }
    }
  },
  "$defs": {
    "SchoolResource": {
      "type": "object",
      "required": [
        "id",
        "title",
        "category",
        "description",
        "sourcePath"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "category": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "sourcePath": {
          "type": "string"
        }
      }
    }
  }
}