Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic destructuring support #22

Closed
vemv opened this issue Mar 9, 2019 · 0 comments · Fixed by #60
Closed

Basic destructuring support #22

vemv opened this issue Mar 9, 2019 · 0 comments · Fixed by #60

Comments

@vemv
Copy link
Contributor

vemv commented Mar 9, 2019

Different from nedap/utils.spec#13

The following doesn't work:

(speced/defn update-default-applications! [this
                                           ^::protocols.edit/update-default-applications
                                           {:keys [org-id application-id enabled?] :as input}]
  (println input))

...since the spec failure will have the following form:

-- Spec failed --------------------

  {:as {:org-id 9999123, :application-id 2, :enabled? true},
   :keys [9999123 2 true]}

should contain keys: :application-id, :enabled?, :org-id
vemv referenced this issue Jun 4, 2019
Fixes nedap/utils.spec#22
vemv referenced this issue Jun 4, 2019
Fixes nedap/utils.spec#22
vemv referenced this issue Jun 4, 2019
Fixes nedap/utils.spec#22
vemv referenced this issue Jun 4, 2019
Fixes nedap/utils.spec#22
vemv referenced this issue Jun 4, 2019
Fixes nedap/utils.spec#22
vemv referenced this issue Jun 4, 2019
Fixes nedap/utils.spec#22
vemv referenced this issue Jun 4, 2019
Fixes nedap/utils.spec#22
@vemv vemv closed this as completed in #60 Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant