Skip to content

Commit

Permalink
Merge pull request #110 from k20human/CodecJsonEnabled
Browse files Browse the repository at this point in the history
feat(json): Add function `CodecJsonEnabled` inside ISchemaRegistryClient interface
  • Loading branch information
riferrei authored Nov 26, 2024
2 parents f2c6b0f + f8c1dc3 commit cc12a77
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 cc12a77

Please sign in to comment.