ring.swagger.common
deep-merge
(deep-merge strategy & values)(deep-merge values)Recursively merges maps. If the first parameter is a keyword it tells the strategy to use when merging non-map collections. Options are - :replace, the default, the last value is used - :into, if the value in every map is a collection they are concatenated using into. Thus the type of (first) value is maintained.
extract-parameters
(extract-parameters c)Extract parameters from head of the list. Parameters can be:
- a map (if followed by any form)
[{:a 1 :b 2} :body]=>{:a 1 :b 2} - list of keywords & values
[:a 1 :b 2 :body]=>{:a 1 :b 2} - else =>
{}
Returns a tuple with parameters and body without the parameters