Closed zelenij closed 2 years ago
Hi there @zelenij thanks a lot for filing the issue and providing the relevant information 🙏 I'll have a look
Interesting observation - the above failure is from tests, running with .NET client. There seems to be no problem when trying the same thing from the browser!
Hi @zelenij I just tried to reproduce the problem but I wasn't able to. I used a record that has a field of type string option
.
Your error message is saying that the error occurs at the following path:
Path '[0].placeId.value'
Which means that the JSON might have had this shape:
{
"placeId": {
"value": "text value here"
}
}
Can you please provide a sample of code that isn't working?
I'll try to carve out a stand-alone example.
Did you see my last comment by the way? Might be relevant...
Did you see my last comment by the way? Might be relevant...
That's what I tested against: using the dotnet client (see this commit)
Tried the latest version of Fable.Remoting.DotnetClient (3.22) - seems to work now!
I have a record type with one of the fields defined as
PlaceId: string option
And when I set the value of the field to
Some "value"
on the client and then submit to the server, this is the exception I get:Looks a bit weird, especially since using options in the other direction (server->client) with all sorts of types seems to work just fine.
From paket.lock: