Skip to content

Instantly share code, notes, and snippets.

@w01fe
Last active January 2, 2016 04:09
Show Gist options
  • Save w01fe/8248664 to your computer and use it in GitHub Desktop.
Save w01fe/8248664 to your computer and use it in GitHub Desktop.
(s/defn parse-comment-request :- CommentRequest
[raw-request]
(update-in
(if (contains? raw-request :parent-comment-id)
(update-in raw-request [:parent-comment-id] long)
raw-request)
[:share-services]
(partial mapv keyword)))
(= +good-request+ (parse-comment-request +bad-request+))
;; ==> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment