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 am attempting to use Tomlyn to read/write a model that contains properties that are non-primitive. Given the following code I would expect that the resulting model would contain the Uri as parsed from the sample text as the TomlModelOptions.ConvertTo is defined. Instead the test fails with the diagnostics containing the following error:
The property value of type System.String couldn't be converted to System.Uri for the property Tests+Config/service_uri
I am attempting to use Tomlyn to read/write a model that contains properties that are non-primitive. Given the following code I would expect that the resulting model would contain the Uri as parsed from the sample text as the TomlModelOptions.ConvertTo is defined. Instead the test fails with the diagnostics containing the following error:
The property value of type System.String couldn't be converted to System.Uri for the property Tests+Config/service_uri
Through debugging this issue it seems that if I temporarily change the value of the variable
value
at the following line to nullTomlyn/src/Tomlyn/Model/Accessors/DynamicModelReadContext.cs
Line 92 in 9d99bb3
and then revert it back to the original value at the following line
Tomlyn/src/Tomlyn/Model/Accessors/DynamicModelReadContext.cs
Line 164 in 9d99bb3
then the
ConvertTo
option is successfully called and the test passes.The text was updated successfully, but these errors were encountered: