You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there should be a method to obtain the default value of a schema after parsing, so I used 'getDefaults'. However, this method can only obtain the default value of one layer of object and cannot recursively obtain it.
Should we add a separate function implementation or do we currently have no development plan for this?
The text was updated successfully, but these errors were encountered:
getDefaults will return any defined defaults, and if not, will recursively resolve defaults over objects and tuples. But right now it can't resolve optional objects without defaults because we can't know if the user wants it to return undefined or check for the wrapped schema and continue. This could be solved. It would be great to get more feedback on this. For now, you could also copy the source of getDefaults and modify it to your needs.
I think there should be a method to obtain the default value of a schema after parsing, so I used 'getDefaults'. However, this method can only obtain the default value of one layer of object and cannot recursively obtain it.
Should we add a separate function implementation or do we currently have no development plan for this?
The text was updated successfully, but these errors were encountered: