-
Notifications
You must be signed in to change notification settings - Fork 146
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
Get default value of a property of an object when the object is an array item #403
Comments
+1 |
@vaidkaran or anyone interested, could you create a failing test demonstrating the problem please? That would help! |
Does this help? |
Any update on this? |
+1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am trying to get the default value of
pathFilter
viaconvict.default()
Below is my configSchema
And the config looks like:
I tried doing
config.default('masks.body.children.pathFilter')
but that doesn't work.One problem that I see here is that we add and look for
_cvtProperties
under arrays too. Arrays seem to havechildren
and not_cvtProperties
. So thedefault
function would resolve the path and look forbody._cvtProperties
but it won't exist.Maybe we need to cater for arrays here
Please advise.
The text was updated successfully, but these errors were encountered: