I have a situation where a converter uses a default, and the converter is wrapped in a t.partial.
It sounds like the t.partial logic is to skip the converter if the value is undefined. However, this is confusing because this doesn't allow the converter to initialize the value if it is undefined. I would expect a converter to be able to define its default value, even if it the converter is optional.
Is it possible for optional converters to check if the default is defined, and call it when the value is undefined?
I attached a simple test case that demonstrates the issue.
nested-converter.test.txt
I have a situation where a converter uses a default, and the converter is wrapped in a t.partial.
It sounds like the t.partial logic is to skip the converter if the value is undefined. However, this is confusing because this doesn't allow the converter to initialize the value if it is undefined. I would expect a converter to be able to define its default value, even if it the converter is optional.
Is it possible for optional converters to check if the default is defined, and call it when the value is undefined?
I attached a simple test case that demonstrates the issue.
nested-converter.test.txt