From b2648057969c49ea61050bd1780a4836aed9627f Mon Sep 17 00:00:00 2001 From: Wojciech Tyczynski Date: Thu, 10 Mar 2016 13:22:57 +0100 Subject: [PATCH] JSON serializer implements serializer interface --- pkg/runtime/serializer/json/json.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/runtime/serializer/json/json.go b/pkg/runtime/serializer/json/json.go index f9fb4bbfb22..299ae854eb5 100644 --- a/pkg/runtime/serializer/json/json.go +++ b/pkg/runtime/serializer/json/json.go @@ -60,6 +60,9 @@ type Serializer struct { pretty bool } +// Serializer implements Serializer +var _ runtime.Serializer = &Serializer{} + // Decode attempts to convert the provided data into YAML or JSON, extract the stored schema kind, apply the provided default gvk, and then // load that data into an object matching the desired schema kind or the provided into. If into is *runtime.Unknown, the raw data will be // extracted and no decoding will be performed. If into is not registered with the typer, then the object will be straight decoded using