{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rollee/json-schema/rollee-v5-data-source-schema.json",
  "title": "v5.DataSource",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rollee-data-sources-api-openapi.yml#/components/schemas/v5.DataSource",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "platform_subtype": {
      "$ref": "#/$defs/models.PlatformSubtype"
    },
    "platform_type": {
      "$ref": "#/$defs/models.PlatformType"
    },
    "status": {
      "type": "string"
    }
  },
  "$defs": {
    "models.PlatformSubtype": {
      "type": "string",
      "enum": [
        "Mobility Only",
        "Food Delivery Only",
        "Mix Mobility and Food"
      ],
      "x-enum-varnames": [
        "PlatformSubtypeMobilityOnly",
        "PlatformSubtypeFoodDeliveryOnly",
        "PlatformSubtypeMixMobilityAndFood"
      ]
    },
    "models.PlatformType": {
      "type": "string",
      "enum": [
        "Gig Economy",
        "Tax portals",
        "Wallets",
        "Payroll & HRIS",
        "Utilities",
        "Consumer"
      ],
      "x-enum-varnames": [
        "PlatformGigEconomy",
        "PlatformGovernmentPlatforms",
        "PlatformWallet",
        "PlatformPayrollHRIS",
        "PlatformUtility",
        "PlatformConsumer"
      ]
    }
  }
}