{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rightis-org/json-schema/rightis-org-dataset-license-schema.json",
  "title": "DatasetLicense",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rightis-org-openapi.json#/components/schemas/DatasetLicense",
  "type": "object",
  "properties": {
    "dataset_id": {
      "type": "string",
      "format": "uuid"
    },
    "public_code": {
      "type": "string"
    },
    "service_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "submitted",
        "under_review",
        "approved",
        "active",
        "rejected",
        "expired",
        "revoked"
      ]
    },
    "purpose": {
      "type": "string"
    },
    "categories": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "training_scope": {
      "type": "string"
    },
    "term_months": {
      "type": "integer"
    },
    "training_data_retention_days": {
      "type": "integer"
    },
    "retraining_permitted": {
      "type": "boolean"
    },
    "deletion_guaranteed": {
      "type": "boolean"
    },
    "proposed_total_amount": {
      "type": "string"
    },
    "approved_total_amount": {
      "type": [
        "string",
        "null"
      ]
    },
    "currency_code": {
      "type": "string"
    },
    "member_count": {
      "type": "integer"
    },
    "eligible_count": {
      "type": [
        "integer",
        "null"
      ],
      "description": "holders who would be included right now (request time only)"
    },
    "review_notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "reviewed_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "activated_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "manifest_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "confirm_url": {
      "type": "string"
    },
    "webhook_events_to_expect": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}