From 3c09b7bd913f7e4dafce23e64a31eae7d566dbcf Mon Sep 17 00:00:00 2001 From: Ben Millar <44114751+ben-millar@users.noreply.github.com> Date: Wed, 22 Nov 2023 14:42:54 +0000 Subject: [PATCH] CORE-18495 Made topic field in ExternalEvent.avsc optional; defaults to null (#1357) Now that some external events are send over HTTP RPC rather than the Kafka message bus, we're making the `topic` field in the ExternalEvent AVRO object optional so it need not be set for HTTP-based communications. --- .../net/corda/data/flow/event/external/ExternalEvent.avsc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data/avro-schema/src/main/resources/avro/net/corda/data/flow/event/external/ExternalEvent.avsc b/data/avro-schema/src/main/resources/avro/net/corda/data/flow/event/external/ExternalEvent.avsc index 740370142a..bb40e19cfd 100644 --- a/data/avro-schema/src/main/resources/avro/net/corda/data/flow/event/external/ExternalEvent.avsc +++ b/data/avro-schema/src/main/resources/avro/net/corda/data/flow/event/external/ExternalEvent.avsc @@ -6,8 +6,9 @@ "fields": [ { "name": "topic", - "type": "string", - "doc": "The topic that the external event is sent to." + "type": ["null", "string"], + "doc": "The topic that the external event is sent to.", + "default": null }, { "name": "key",