chore(trait): Migrate the GC trait to structured serialization
diff --git a/pkg/trait/gc.go b/pkg/trait/gc.go
index bcd3e43..9c8380b 100644
--- a/pkg/trait/gc.go
+++ b/pkg/trait/gc.go
@@ -63,7 +63,7 @@
 type garbageCollectorTrait struct {
 	BaseTrait `property:",squash"`
 	// Discovery client cache to be used, either `disabled`, `disk` or `memory` (default `memory`)
-	DiscoveryCache *discoveryCacheType `property:"discovery-cache"`
+	DiscoveryCache *discoveryCacheType `property:"discovery-cache" json:"discoveryCache,omitempty"`
 }
 
 func newGarbageCollectorTrait() Trait {