Copied data models from MongoDb Realm doesn't compile

When you copy a datamodel from the MondoDb collections automatically get a @required annotation. When you import this to your Android application it doesn’t compile and you get the error message @Required not allowed on RealmList that contain other Realm model classes.

I think it has been like this for a while. Is this a bug?

Would you mind sharing the explicit steps for copying the data model for the collections, so that I can try to reproduce?

It’s probably the same issue as this one:

Not sure if this has been fixed yet in MongoDb Realm. But all generated models that had lists of them generated a kotlin class with @required which fails to compile if you import this to Android studio. I did send a support issue about this including samples and they were able to reproduce the issue.