Skip to content

Routes should match when destructured value is false #6

@quan-nh

Description

@quan-nh

I think these cases should match with not nil value?

(def routes '{#{x} [:foo x]})
(matches routes {:uri "/" :query-params {"x" false}})
;;=> [:ataraxy.error/missing-params #{x}]

(def routes '{{{:keys [q]} :body-params} [:foo q]})
(matches routes {:uri "/" :body-params {:q false}})
;;=> [:ataraxy.error/missing-destruct #{q}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions