Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go onoef discriminator err #8226

Conversation

code-lucidal58
Copy link
Contributor

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)

@wing328
Copy link
Member

wing328 commented Jan 17, 2022

Closed via #11178

@wing328 wing328 closed this Jan 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants