Repository navigation
refactor(models)!: remove the deprecated JsonUtil classes - #493
Merged
Merged
Conversation
dargmuesli
force-pushed
the
refactor/build/generated-source-root
branch
from
November 5, 2026 12:36
8df3f20 to
21f14fd
Compare
Every model's nested JsonUtil, AbstractModelObject.JsonUtil and IModelObject.IJsonUtil were deprecated in 10.x in favour of ModelObjects and no longer used by the library. PlaylistItemFactory goes with them: its only method took a Gson JsonObject, and the reader now lives in the internal ModelObjectGson, so the model_objects.utils package is no longer exported. MIGRATION.md maps each removed call to its ModelObjects replacement. Refs #461
dargmuesli
force-pushed
the
refactor/models/remove-json-util
branch
from
November 5, 2026 12:36
acbdd85 to
6c5a6f4
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## refactor/build/generated-source-root #493 +/- ##
==========================================================================
+ Coverage 35.82% 37.10% +1.27%
Complexity 509 509
==========================================================================
Files 107 106 -1
Lines 4446 4282 -164
Branches 205 196 -9
==========================================================================
- Hits 1593 1589 -4
+ Misses 2763 2603 -160
Partials 90 90 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This was referenced Nov 5, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #492, which sits on #487. Removes the deprecated JsonUtil API: every model's nested JsonUtil class, their base class
AbstractModelObject.JsonUtiland the interfaceIModelObject.IJsonUtil. All of it was deprecated in 10.x in favour ofModelObjects, and the library itself no longer calls any of it.PlaylistItemFactorygoes with them: its only method took a Gson JsonObject, and that reader now lives in the internalModelObjectGson, so themodel_objects.utilspackage is no longer exported from the module.MIGRATION.mdmaps each removed call to itsModelObjectsreplacement. The JsonObject and JsonArray overloads, and the variants that read a named member of the JSON, have no replacement, becauseModelObjectstakes the JSON as a String.This is a breaking change, so the commit carries the
!and the removals are recorded inMIGRATION.mdunder 10.0.0 to 11.0.0. Verified locally: 426 tests pass,codegen/generate.py --checkreports no drift,ci/check-docs.pychecks all 115 examples, Javadoc passes doclint, and the examples module compiles.