Skip to content

Commit 0818280

Browse files
authored
Merge pull request #101 from bitol-io/dev-kafkaexamples
Kafka schema examples
2 parents e5bb855 + 2ebe21b commit 0818280

File tree

4 files changed

+55
-2
lines changed

4 files changed

+55
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ image: "https://raw.githubusercontent.com/bitol-io/artwork/main/horizontal/color
66

77
This document tracks the history and evolution of the **Open Data Contract Standard**.
88

9-
# v3.0.0 - 2024-10-05 - APPROVED
9+
# v3.0.0 - 2024-10-21 - APPROVED
1010

1111
* **New section**: Support & communication channels.
1212
* **New section**: Servers.

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ This section contains general information about the contract.
4343
### Example
4444

4545
```YAML
46-
apiVersion: 3.0.0 # Standard version
46+
apiVersion: v3.0.0 # Standard version
4747
kind: DataContract
4848

4949
id: 53581432-6c55-4ba2-a65f-72344a91553a
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
apiVersion: v3.0.0
2+
kind: DataContract
3+
id: orders
4+
status: development
5+
name: Orders Event Stream
6+
version: 0.0.1
7+
schema:
8+
- name: Orders
9+
physicalName: orders
10+
logicalType: object
11+
physicalType: topic
12+
description: Orders Kafka topic
13+
properties:
14+
- name: cust_id
15+
businessName: Customer ID
16+
logicalType: string
17+
physicalType: string
18+
required: true
19+
- name: prod_id
20+
businessName: Product ID
21+
logicalType: string
22+
physicalType: string
23+
required: true
24+
- name: qty
25+
businessName: Quantity
26+
logicalType: integer
27+
physicalType: int
28+
required: true
29+
servers:
30+
- server: my-kafka
31+
type: kafka
32+
format: avro
33+
host: kafkabroker1:9092
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
apiVersion: v3.0.0
2+
kind: DataContract
3+
id: orders
4+
status: production
5+
name: Orders Event Stream
6+
version: 0.0.1
7+
schema:
8+
- name: Orders
9+
physicalName: orders
10+
logicalType: object
11+
physicalType: topic
12+
description: Orders Kafka topic
13+
authoritativeDefinitions:
14+
- url: https://schema-registry:8081
15+
type: implementation
16+
servers:
17+
- server: my-kafka
18+
type: kafka
19+
format: avro
20+
host: kafkabroker1:9092

0 commit comments

Comments
 (0)