lib/ldclient-rb/impl/model/serialization.rb in launchdarkly-server-sdk-7.0.0 vs lib/ldclient-rb/impl/model/serialization.rb in launchdarkly-server-sdk-7.0.1

- old
+ new

@@ -35,10 +35,10 @@ # constructors directly, so as not to rely on implementation details. # # @param kind [Hash] normally either FEATURES or SEGMENTS # @param input [object] a JSON string or a parsed hash (or a data model object, in which case # we'll just return the original object) - # @param logger [Logger|nil] logs warnings if there are any data validation problems + # @param logger [Logger|nil] logs errors if there are any data validation problems # @return [Object] the flag or segment (or, for an unknown data kind, the data as a hash) def self.deserialize(kind, input, logger = nil) return nil if input.nil? return input if !input.is_a?(String) && !input.is_a?(Hash) data = input.is_a?(Hash) ? input : JSON.parse(input, symbolize_names: true)