From f8c1dc3b3ed73a850093db604e3c288975278227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Mathieu?= Date: Mon, 19 Aug 2024 14:39:49 +0200 Subject: [PATCH] feat(json): Add function `CodecJsonEnabled` inside ISchemaRegistryClient interface --- mockSchemaRegistryClient.go | 5 +++++ schemaRegistryClient.go | 1 + 2 files changed, 6 insertions(+) diff --git a/mockSchemaRegistryClient.go b/mockSchemaRegistryClient.go index d5d1758..f99d448 100644 --- a/mockSchemaRegistryClient.go +++ b/mockSchemaRegistryClient.go @@ -292,6 +292,11 @@ func (mck *MockSchemaRegistryClient) CodecCreationEnabled(bool) { // Nothing because codecs do not matter in the inMem storage of schemas } +// CodecJsonEnabled is not implemented +func (mck *MockSchemaRegistryClient) CodecJsonEnabled(value bool) { + // Nothing because codecs do not matter in the inMem storage of schemas +} + // IsSchemaCompatible is not implemented func (mck *MockSchemaRegistryClient) IsSchemaCompatible(string, string, string, SchemaType, ...Reference) (bool, error) { return false, errNotImplemented diff --git a/schemaRegistryClient.go b/schemaRegistryClient.go index f56e4b6..e711e94 100644 --- a/schemaRegistryClient.go +++ b/schemaRegistryClient.go @@ -49,6 +49,7 @@ type ISchemaRegistryClient interface { CachingEnabled(value bool) ResetCache() CodecCreationEnabled(value bool) + CodecJsonEnabled(value bool) IsSchemaCompatible(subject, schema, version string, schemaType SchemaType, references ...Reference) (bool, error) }