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

-schema-schema explain path is invalid input for m/-get #573

Closed
ikitommi opened this issue Nov 17, 2021 · 0 comments
Closed

-schema-schema explain path is invalid input for m/-get #573

ikitommi opened this issue Nov 17, 2021 · 0 comments

Comments

@ikitommi
Copy link
Member

before:

(as-> [:schema :int] $
      (m/explain $ "1")
      (let [{:keys [schema] [{:keys [path]}] :errors} $]
        (mu/get-in schema path)))
; => nil

after:

(as-> [:schema :int] $
      (m/explain $ "1")
      (let [{:keys [schema] [{:keys [path]}] :errors} $]
        (mu/get-in schema path)))
; => :int
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

No branches or pull requests

1 participant