-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fixes rm-cosmos regression #41748
Fixes rm-cosmos regression #41748
Conversation
I don't think we should be doing this. |
API change check APIView has identified API level changes in this PR and created following API reviews. |
/azp run java - cosmos - spark |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run java - cosmos - spark |
Azure Pipelines successfully started running 1 pipeline(s). |
That is true - and changing module-info did not help. So, using a different approach - but IMO it was really a terrible idea to make this breaking change and then release it as a minor version upgrade. azure-resourcemanager-cosmos should never have been moved to azure-core-json until moving to 3.* major version. |
/azp run java - cosmos - spark |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thanks!
* Fixes rm-cosmos regression * Iterating on rm-cosmos fix * Update pom.xml
Description
Since version 2.42.0 of azure-resourcemanager-cosmos the model POJP classes can't be serialized/derserialized with Jackson Object-Mapper anymore because they implement
com.azure.json.JsonSerializable
now - to allow to still use Jackson ObjectMapper directly a modulecom.azure.core.serializer.json.jackson.JacksonJsonProvider .getJsonSerializableDatabindModule()
needs to be registered with the ObjectMapper.This PR is adding this moduleto react to the breaking change in 2.42.0 of azure-resourcemanager-cosmos.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines
/azp run java - cosmos - spark
pipeline