Ross Lawley
Ross Lawley
I no longer work on MongoEngine - so if anyone wants to commit to maintaining the repo then uploading to pypi should be trivial.
``` class PasswordField(StringField): """A password field - generate password using specific algorithm (md5,sha1,sha512 etc) and regex validator Default regex validator: r[A-Za-z0-9] {'hash': 'c2e920e469d14f240d4de02883489750a1a63e68', 'salt': 'QBX6FZD', 'algorithm': 'sha1'} ... check password...
The issue is the automatic PojoCodec is lazy, so custom discriminators that don't use the full classpath risk not being seen by the PojoCodec and therefore can't be handled. As...
Through the [PojoCodecProvider.Builder#register](http://mongodb.github.io/mongo-java-driver/3.12/javadoc/org/bson/codecs/pojo/PojoCodecProvider.Builder.html) method. There you explicitly register what classes to support. By declaring the class, the discriminator is registered explicitly.
Evergreen patch: https://spruce.mongodb.com/version/663def7a6ab3400007a2b9f4/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC
The kotlin bson codec already supports default values for data classes. This PR is something slightly different, it wants to use default values where the data stored is a `BsonNull`....
Hi @filipeportes, Thanks for your perservance with this issue. I've added [JAVA-5281](https://jira.mongodb.org/browse/JAVA-5281) to track it. This will be triaged and if successful scheduled for a future release. I will update...
Just to update it looks like there is a way for kotlinx to do this with json, via configuration. So its now on the backlog for applying to both kotlin-bson...
Hi @filipeportes, Just to update there is no firm timeline as to when this work will be scheduled. Please watch the ticket ([JAVA-5281](https://jira.mongodb.org/browse/JAVA-5281)) for updates. As the solution will require...
Thanks @ht-jo for the PR and the ticket. We'll triage and review in the near future 👍