Skip to content

Feature/some refactorings#8

Open
n0900 wants to merge 12 commits into
developmentfrom
feature/someRefactorings
Open

Feature/some refactorings#8
n0900 wants to merge 12 commits into
developmentfrom
feature/someRefactorings

Conversation

@n0900

@n0900 n0900 commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Fundamentally refactor ObjectBacked from interface with generics to abstract class without. In particular because ObjectBacked does no longer carry a generic type we should be able to use it in classes that need more than one serialization path (json and cbor for example) although this is future work

The previous generic (V) fixing the type of the backing object is not necessary. decode is renamed to getElement and original getElement removed. Integrated ObjectBackedValidated into ObjectBacked but the validate function has default implementation that does nothing.

The ultimate goal is that the helper classes such as JsonBackedObject are easy to implement and most logic lies in the abstract class extension functions (in ObjectBackedProperty.kt)

@n0900
n0900 requested a review from JesusMcCloud July 10, 2026 10:24
@n0900 n0900 self-assigned this Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant