From 7b0402d87d5fe98ca8e157bad0e223c72543c4ea Mon Sep 17 00:00:00 2001 From: Shubham Gupta Date: Thu, 21 Sep 2023 09:26:30 +0530 Subject: [PATCH] pkg/sr: use ptr type for SchemaMetadata and SchemaRuleSet --- pkg/sr/api.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/sr/api.go b/pkg/sr/api.go index 8a1fbde5..c359e859 100644 --- a/pkg/sr/api.go +++ b/pkg/sr/api.go @@ -80,10 +80,10 @@ type ( References []SchemaReference `json:"references,omitempty"` // SchemaMetadata is arbitrary information about the schema. - SchemaMetadata SchemaMetadata `json:"metadata,omitempty"` + SchemaMetadata *SchemaMetadata `json:"metadata,omitempty"` // SchemaRuleSet is a set of rules that govern the schema. - SchemaRuleSet SchemaRuleSet `json:"ruleSet,omitempty"` + SchemaRuleSet *SchemaRuleSet `json:"ruleSet,omitempty"` } // SubjectSchema pairs the subject, global identifier, and version of a @@ -667,6 +667,7 @@ func (cl *Client) ResetCompatibility(ctx context.Context, subjects ...string) [] go func() { defer wg.Done() var c SetCompatibility // unmarshals with "compatibility" + fmt.Println("set comp", c) err := cl.delete(ctx, pathConfig(subject), &c) results[slot] = CompatibilityResult{ Subject: subject,