Skip to content

Commit

Permalink
feat(json): Add function CodecJsonEnabled inside ISchemaRegistryCli…
Browse files Browse the repository at this point in the history
…ent interface
  • Loading branch information
k20human committed Aug 19, 2024
1 parent f2c6b0f commit f8c1dc3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mockSchemaRegistryClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions schemaRegistryClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit f8c1dc3

Please sign in to comment.