You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a know regression in the way combine works. liberator.util/combine works like a recursive merge but id will also concat lists, vectory and sets.
You can attach the meta data attribute :replace to prevent a merge:
We had a similar issue caused by this "deep merge/concat" of combine, we solved it using ^:replace.
For those who wonder you can't use with-meta with all values but you can add it conditionally:
The above example yields ["one" "one" "two"], but I think it's reasonable to expect the same behavior as merge?
Caused by the use of concat on lists and vectors:
https://github.com/clojure-liberator/liberator/blob/master/src/liberator/core.clj#L77
Mail group thread:
http://groups.google.com/group/clojure-liberator/t/4c58338847eb585e
The text was updated successfully, but these errors were encountered: