jet / falanx

Generates F# code from protobuf schema for binary and json format

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OneOf fields are not contained in the record definition

7sharp9 opened this issue · comments

Take the example in the repo:

module SampleMessage =
    type test_oneof =
        | First_name of First_name : string
        | Age of Age : int
        | Last_name of Last_name : string

[<CLIMutable>]
type SampleMessage =
    { mutable martId : int option }
    member x.testOneof = x.testOneof

member x.testOneof = x.testOneof should actually be defined as part of the record

Fixed in #77