Created
April 13, 2016 01:24
-
-
Save amalloy/f4744a190594c6d2f25909b9a8370f84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user> (reduce (fn [acc [keyseq type]] | |
(update-in acc keyseq (fnil conj #{}) type)) | |
{} | |
(for [[method objs] inputs | |
obj objs | |
[half fields] obj | |
[field value] fields] | |
[[method half field] (type value)])) | |
{"SignIn" {:request {"InvitationID" #{nil}, "ReturnExpiredAuthenticationMethods" #{java.lang.Boolean}, "AuthInfo" #{nil clojure.lang.PersistentArrayMap}, "Version" #{nil}, "ApiVersion" #{java.lang.String}, "ClientInfo" #{clojure.lang.PersistentArrayMap}}, :response {"AuthenticationLevel" #{java.lang.Long}, "ExpiredAuthenticationMethods" #{nil clojure.lang.PersistentVector}, "ExpirationReason" #{nil}, "User" #{clojure.lang.PersistentArrayMap}, "Alerts" #{nil}, "NewSession" #{nil}, "ApiVersion" #{nil}}}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment