{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/affiliaterail-com/json-schema/affiliaterail-com-group-schema.json",
  "title": "Group",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/affiliaterail-com-groups-api-openapi.yml#/components/schemas/Group",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^(sample_)?grp_",
      "description": "Prefixed id (`grp_…`)"
    },
    "object": {
      "type": "string",
      "enum": [
        "group"
      ]
    },
    "program_id": {
      "type": "string",
      "pattern": "^(sample_)?prg_",
      "description": "Prefixed id (`prg_…`)"
    },
    "name": {
      "type": "string"
    },
    "slug": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "landing_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "is_private": {
      "type": "boolean"
    },
    "is_default": {
      "type": "boolean"
    },
    "stats": {
      "type": "object",
      "properties": {
        "partners": {
          "type": "integer"
        }
      },
      "required": [
        "partners"
      ]
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "ISO-8601, UTC"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "ISO-8601, UTC"
    }
  },
  "required": [
    "id",
    "object",
    "program_id",
    "name",
    "slug",
    "description",
    "landing_url",
    "is_private",
    "is_default",
    "created_at",
    "updated_at"
  ]
}