Apache Kafka · JSON Structure

Kafka Rest Proxy Produce Request Structure

ProduceRequest schema from Apache kafka

Type: object Properties: 4
Distributed SystemsEvent StreamingMessagingOpen SourcePub-Sub

ProduceRequest is a JSON Structure definition published by Apache Kafka, describing 4 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

partition_id headers key value

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "type": "object",
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-kafka/refs/heads/main/json-structure/kafka-rest-proxy-produce-request-structure.json",
  "name": "ProduceRequest",
  "description": "ProduceRequest schema from Apache kafka",
  "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": {}
      }
    }
  }
}