You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I now use SomeOtherModel = warlock.model_factory(other_model_schema, base_class=BaseClass) where other_model_schema contains an enum, my enum validation stops working.
EDIT:
It does not seem to just break enum validation. For me it breaks the entire validation. So using a BaseClass is pretty much useless because my entire validation breaks.
The text was updated successfully, but these errors were encountered:
I am using MongoDB and since MongoDB adds a "_id" field before saving an element to the Database, I made a Base class as follows:
When I now use
SomeOtherModel = warlock.model_factory(other_model_schema, base_class=BaseClass)
whereother_model_schema
contains an enum, my enum validation stops working.EDIT:
It does not seem to just break enum validation. For me it breaks the entire validation. So using a BaseClass is pretty much useless because my entire validation breaks.
The text was updated successfully, but these errors were encountered: