Apache Kafka · Schema

ProduceRequest

ProduceRequest schema from Apache kafka

Distributed SystemsEvent StreamingMessagingOpen SourcePub-Sub

Properties

Name Type Description
partition_id integer
headers array
key object
value object
View JSON Schema on GitHub

JSON Schema

kafka-rest-proxy-produce-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-kafka/refs/heads/main/json-schema/kafka-rest-proxy-produce-request-schema.json",
  "title": "ProduceRequest",
  "description": "ProduceRequest schema from Apache kafka",
  "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": {}
      }
    }
  }
}