From c9d2351dbcf7f027bca30127269eedaa2904579b Mon Sep 17 00:00:00 2001 From: Shubham Gupta Date: Thu, 21 Sep 2023 19:18:58 +0530 Subject: [PATCH] pkg/sr: use ptr type for SchemaMetadata and SchemaRuleSet (#577) * pkg/sr: use ptr type for SchemaMetadata and SchemaRuleSet --- pkg/sr/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/sr/api.go b/pkg/sr/api.go index 8a1fbde5..af7bc54d 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