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
I think that MongoJsonSchemaCreator is treating collection like fields of a @Document class incorrectly:
for simple and enum lists (e.g. List<String>, List<Enum>), information about expected array type is lost and they are included in a resulting schema as array
complex lists (e.g. List<ObjectType>), are resolved as an object with properties taken from ObjectType - the information that it is an array is lost completely (and results in not being able to insert correct document into the database).