Skip to content

Commit

Permalink
pkg/sr: use ptr type for SchemaMetadata and SchemaRuleSet (#577)
Browse files Browse the repository at this point in the history
* pkg/sr: use ptr type for SchemaMetadata and SchemaRuleSet
  • Loading branch information
shubham030 authored Sep 21, 2023
1 parent bfe638e commit c9d2351
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 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

0 comments on commit c9d2351

Please sign in to comment.