{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/datagalactica-com/json-schema/datagalactica-com-contribution-schema.json",
  "title": "Contribution",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/datagalactica-com-api-openapi.json#/components/schemas/Contribution",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "entity": {
      "type": "string"
    },
    "kind": {
      "type": "string",
      "enum": [
        "update",
        "note",
        "action"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "approved",
        "held",
        "rejected",
        "applied"
      ]
    },
    "review": {
      "type": "object",
      "properties": {
        "decision": {
          "type": "string",
          "enum": [
            "approve",
            "hold",
            "reject"
          ]
        },
        "reasons": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "risk": {
          "type": "string",
          "enum": [
            "low",
            "medium",
            "high"
          ]
        }
      }
    },
    "changes": {
      "type": "object"
    },
    "text": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "at": {
      "type": "string",
      "format": "date-time"
    }
  }
}