Closed
requested to merge github/fork/CiscoM31/go-onoef-discriminator-err into go-onoef-discriminator-err
Created by: code-lucidal58
Here is the logic I have tried to implement
if useOneOfDiscriminatorLookup and discriminator:
use discriminator to marshal
else:
use object marshalling and check if it fits into any struct
Since mustache does not have and
operator, there is a block of code that is used twice.
if useOneOfDiscriminatorLookup:
if discriminator:
use discriminator to marshal
else:
use object marshaling and check if fits into any struct
else:
use object marshaling and check if fits into any struct
@antihax (2017/11) @grokify (2018/07) @kemokemo (2018/09) @bkabrda (2019/07)