There was a bug where the Discriminator field was not being set by default.
When creating an instance of a model that inherited from another model, the discriminator field was not assigned a default value.
This behavior has now been fixed. Please regenerate your SDK to get the fix.