Skip to content

Commit

Permalink
pkg/sr: use ptr type for SchemaMetadata and SchemaRuleSet
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham030 committed Sep 21, 2023
1 parent bfe638e commit 7b0402d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/sr/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 7b0402d

Please sign in to comment.