feat: removed data attribute from snapshot #365
Merged
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.



This pull request refactors how snapshot data is structured and handled throughout the codebase, removing the unnecessary
Datawrapper class and simplifying the model to useDomaindirectly withinSnapshot. It also updates related serialization/deserialization logic, test fixtures, and configuration files to match the new structure. Additionally, several dependency versions are updated in the Maven configuration.Model and Serialization Refactoring:
Dataclass (src/main/java/com/switcherapi/client/model/criteria/Data.java) and updatedSnapshotto contain aDomainfield directly, simplifying the data model and reducing nesting. [1] [2]ClientWSImplto handle the new structure by introducing aSnapshotDataResponseDTO, ensuring compatibility with the API response format. [1] [2]Dataand addSnapshotDataResponse. [1] [2]Dependency and Build Updates:
pom.xmlfor improved stability and compatibility (JUnit, Maven Compiler Plugin, Central Publishing Plugin, etc.).2.5.0-SNAPSHOTinpom.xml.Breaking change
Snapshot content before:
{ "data": { "domain": { "name": "switcher-domain", "activated": true, "group": [...] } } }Snapshot content now:
{ "domain": { "name": "switcher-domain", "activated": true, "group": [...] } }