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
Will it be wrong to remove || result == null? AllowEmpty is already checked and it's allowed. TypeConverterHelper.TryConvertFromString<T>(input, out result) says that conversion is successful.
The text was updated successfully, but these errors were encountered:
Information
Describe the bug
"Invalid Input" validation error is returned if:
TextPrompt<Nullable<T>>
AllowEmpty()
is specifiedTo Reproduce
Code snippet for prompt:
Output:

Expected behavior
Since :
AllowEmpty
is trueTypeConvertor
forNullable<T>
returnstrue
Validation error should not occur. Instead null should be returned.
Additional context
In implementation:
AllowEmpty
flag is checked hereOnly after this following snippet is executed
Will it be wrong to remove
|| result == null
?AllowEmpty
is already checked and it's allowed.TypeConverterHelper.TryConvertFromString<T>(input, out result)
says that conversion is successful.The text was updated successfully, but these errors were encountered: