{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-kafka/main/json-schema/apache-kafka-produce-request-schema.json",
  "title": "ProduceRequest",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/apache-kafka-records-api-openapi.yml#/components/schemas/ProduceRequest",
  "type": "object",
  "properties": {
    "partition_id": {
      "type": "integer"
    },
    "headers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "value": {
            "type": "string"
          }
        }
      }
    },
    "key": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "BINARY",
            "JSON",
            "AVRO",
            "PROTOBUF",
            "JSONSCHEMA"
          ]
        },
        "data": {}
      }
    },
    "value": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "BINARY",
            "JSON",
            "AVRO",
            "PROTOBUF",
            "JSONSCHEMA"
          ]
        },
        "data": {}
      }
    }
  }
}