-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Improve rendering of collection-like properties using MongoJsonSchemaCreator
#3766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for bringing this up. We'll have a look! |
We updated the |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Hi! Sorry for delay, I had no time to check it. The fix looks nice, I have checked it against my code and it is working as expected. 5 star job! |
@MateuszWicherski thanks for giving it a try! |
@Document
with MongoJsonSchemaCreator
MongoJsonSchemaCreator
Hi!
I think that
MongoJsonSchemaCreator
is treatingcollection like
fields of a@Document
class incorrectly:List<String>
,List<Enum>
), information about expectedarray
type is lost and they are included in a resulting schema asarray
List<ObjectType>
), are resolved as anobject
with properties taken fromObjectType
- the information that it is anarray
is lost completely (and results in not being able to insert correct document into the database).Minimal example to reproduce the issue can be found here:
https://github.com/MateuszWicherski/spring-data-mongodb-bug
The text was updated successfully, but these errors were encountered: