Skip to content

Commit 6d39916

Browse files
committed
feat: remove fields from order-created (intentionally breaking)
1 parent 65cc2dc commit 6d39916

3 files changed

Lines changed: 24 additions & 0 deletions

File tree

.serena/project.local.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This file allows you to locally override settings in project.yml for development purposes.
2+
#
3+
# Use the same keys as in project.yml here. Any setting you specify will override the corresponding
4+
# setting in project.yml, allowing you to customise the configuration for your local development environment
5+
# without affecting the project configuration in project.yml (which is intended to be versioned).

orders/order-created-v3.avsc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"type": "record",
3+
"name": "OrderCreated",
4+
"namespace": "com.example.payments",
5+
"fields": [
6+
{"name": "orderId", "type": "string"},
7+
{"name": "customerId", "type": "string"},
8+
{"name": "customerEmail", "type": ["null", "string"], "default": null},
9+
{"name": "totalAmount", "type": "double"},
10+
{"name": "currency", "type": "string", "default": "USD"},
11+
{"name": "createdAt", "type": {"type": "long", "logicalType": "timestamp-millis"}},
12+
{"name": "requiredNewField", "type": "string"}
13+
]
14+
}

orders/order-created.registry.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,8 @@ versions:
2222
description: Added customer email field
2323
createdOn: "2024-06-01"
2424
content: ./order-created-v2.avsc
25+
- version: "3.0.0"
26+
state: ENABLED
27+
description: Removed fields (BREAKING CHANGE for testing)
28+
createdOn: "2026-06-03"
29+
content: ./order-created-v3.avsc

0 commit comments

Comments
 (0)