|
| 1 | +{ |
| 2 | + "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | + "$id": "http://asyncapi.com/bindings/kafka/0.5.0/channel.json", |
| 4 | + "title": "Channel Schema", |
| 5 | + "description": "This object contains information about the channel representation in Kafka.", |
| 6 | + "type": "object", |
| 7 | + "additionalProperties": false, |
| 8 | + "patternProperties": { |
| 9 | + "^x-[\\w\\d\\.\\x2d_]+$": { |
| 10 | + "$ref": "http://asyncapi.com/definitions/3.0.0/specificationExtension.json" |
| 11 | + } |
| 12 | + }, |
| 13 | + "properties": { |
| 14 | + "topic": { |
| 15 | + "type": "string", |
| 16 | + "description": "Kafka topic name if different from channel name." |
| 17 | + }, |
| 18 | + "partitions": { |
| 19 | + "type": "integer", |
| 20 | + "minimum": 1, |
| 21 | + "description": "Number of partitions configured on this topic." |
| 22 | + }, |
| 23 | + "replicas": { |
| 24 | + "type": "integer", |
| 25 | + "minimum": 1, |
| 26 | + "description": "Number of replicas configured on this topic." |
| 27 | + }, |
| 28 | + "topicConfiguration" : { |
| 29 | + "description": "Topic configuration properties that are relevant for the API.", |
| 30 | + "type": "object", |
| 31 | + "additionalProperties": true, |
| 32 | + "properties": { |
| 33 | + "cleanup.policy": { |
| 34 | + "description": "The [`cleanup.policy`](https://kafka.apache.org/documentation/#topicconfigs_cleanup.policy) configuration option.", |
| 35 | + "type": "array", |
| 36 | + "items":{ |
| 37 | + "type": "string", |
| 38 | + "enum": ["compact", "delete"] |
| 39 | + } |
| 40 | + }, |
| 41 | + "retention.ms": { |
| 42 | + "description": "The [`retention.ms`](https://kafka.apache.org/documentation/#topicconfigs_retention.ms) configuration option.", |
| 43 | + "type": "integer", |
| 44 | + "minimum": -1 |
| 45 | + }, |
| 46 | + "retention.bytes": { |
| 47 | + "description": "The [`retention.bytes`](https://kafka.apache.org/documentation/#topicconfigs_retention.bytes) configuration option.", |
| 48 | + "type": "integer", |
| 49 | + "minimum": -1 |
| 50 | + }, |
| 51 | + "delete.retention.ms": { |
| 52 | + "description": "The [`delete.retention.ms`](https://kafka.apache.org/documentation/#topicconfigs_delete.retention.ms) configuration option.", |
| 53 | + "type": "integer", |
| 54 | + "minimum": 0 |
| 55 | + }, |
| 56 | + "max.message.bytes": { |
| 57 | + "description": "The [`max.message.bytes`](https://kafka.apache.org/documentation/#topicconfigs_max.message.bytes) configuration option.", |
| 58 | + "type": "integer", |
| 59 | + "minimum": 0 |
| 60 | + }, |
| 61 | + "confluent.key.schema.validation": { |
| 62 | + "description": "It shows whether the schema validation for the message key is enabled. Vendor specific config. For more details: (https://docs.confluent.io/platform/current/installation/configuration/topic-configs.html#confluent-key-schema-validation)", |
| 63 | + "type": "boolean" |
| 64 | + }, |
| 65 | + "confluent.key.subject.name.strategy": { |
| 66 | + "description": "The name of the schema lookup strategy for the message key. Vendor specific config. For more details: (https://docs.confluent.io/platform/current/installation/configuration/topic-configs.html#confluent-key-subject-name-strategy)", |
| 67 | + "type": "string" |
| 68 | + }, |
| 69 | + "confluent.value.schema.validation": { |
| 70 | + "description": "It shows whether the schema validation for the message value is enabled. Vendor specific config. For more details: (https://docs.confluent.io/platform/current/installation/configuration/topic-configs.html#confluent-value-schema-validation)", |
| 71 | + "type": "boolean" |
| 72 | + }, |
| 73 | + "confluent.value.subject.name.strategy": { |
| 74 | + "description": "The name of the schema lookup strategy for the message value. Vendor specific config. For more details: (https://docs.confluent.io/platform/current/installation/configuration/topic-configs.html#confluent-value-subject-name-strategy)", |
| 75 | + "type": "string" |
| 76 | + } |
| 77 | + } |
| 78 | + }, |
| 79 | + "bindingVersion": { |
| 80 | + "type": "string", |
| 81 | + "enum": [ |
| 82 | + "0.5.0" |
| 83 | + ], |
| 84 | + "description": "The version of this binding. If omitted, 'latest' MUST be assumed." |
| 85 | + } |
| 86 | + |
| 87 | + }, |
| 88 | + "examples": [ |
| 89 | + { |
| 90 | + "topic": "my-specific-topic", |
| 91 | + "partitions": 20, |
| 92 | + "replicas": 3, |
| 93 | + "bindingVersion": "0.5.0" |
| 94 | + } |
| 95 | + ] |
| 96 | +} |
0 commit comments