// NewLenientSchemeAndCodecs constructs a CodecFactory with strict decoding // disabled, that has only the Schemes registered into it which are passed // and added via AddToScheme functions. This can be used to skip strict decoding // a specific version only. func NewLenientSchemeAndCodecs(addToSchemeFns ...func(s *runtime.Scheme) error) (*runtime.Scheme, *serializer.CodecFactory, error) { … }