Accessing "unknown keys" and their values from refine()
without passthrough()
#1029
-
I have an object like so:
which I'm validating using a schema like this:
I can access
I don't want |
Beta Was this translation helpful? Give feedback.
Answered by
scotttrinh
Mar 18, 2022
Replies: 1 comment 1 reply
-
I would suggest adding the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Aaronius
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would suggest adding the
b
schema and usingrefine
to do your check and thentransform
to only returna
.