I have some Xml with one of the nodes as follows:
<code>23</code>
FSharp.Data correctly infers the type of "Code" to be an option int. My problem is when the node is empty as follows:
<code />
I get the following exception
Value is missing at <StartupCode$FSharp-Data>[email protected](String message) in C:\Git\FSharp.Data\src\CommonRuntime\TextRuntime.fs:line 109
Is there any way I can get back Option.None instead of it throwing an exception?
EDIT: For types inferred as option string this works as expected.