Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kafka schema examples #101

Merged
merged 6 commits into from
Dec 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ image: "https://raw.githubusercontent.com/bitol-io/artwork/main/horizontal/color

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

# v3.0.0 - 2024-10-05 - APPROVED
# v3.0.0 - 2024-10-21 - APPROVED

* **New section**: Support & communication channels.
* **New section**: Servers.
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ This section contains general information about the contract.
### Example

```YAML
apiVersion: 3.0.0 # Standard version
apiVersion: v3.0.0 # Standard version
kind: DataContract

id: 53581432-6c55-4ba2-a65f-72344a91553a
Expand Down
33 changes: 33 additions & 0 deletions docs/examples/schema/kafka-schema.odcs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: v3.0.0
kind: DataContract
id: orders
status: development
name: Orders Event Stream
version: 0.0.1
schema:
- name: Orders
physicalName: orders
logicalType: object
physicalType: topic
description: Orders Kafka topic
properties:
- name: cust_id
businessName: Customer ID
logicalType: string
physicalType: string
required: true
- name: prod_id
businessName: Product ID
logicalType: string
physicalType: string
required: true
- name: qty
businessName: Quantity
logicalType: integer
physicalType: int
required: true
servers:
- server: my-kafka
type: kafka
format: avro
host: kafkabroker1:9092
20 changes: 20 additions & 0 deletions docs/examples/schema/kafka-schemaregistry.odcs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: v3.0.0
kind: DataContract
id: orders
status: production
name: Orders Event Stream
version: 0.0.1
schema:
- name: Orders
physicalName: orders
logicalType: object
physicalType: topic
description: Orders Kafka topic
authoritativeDefinitions:
- url: https://schema-registry:8081
type: implementation
servers:
- server: my-kafka
type: kafka
format: avro
host: kafkabroker1:9092
Loading