Skip to content

Conversation

@JasonTheAdams
Copy link
Contributor

This consolidates the model contracts that exist. The factory contract was already removed in #25, so this continues the work. This does a few pieces of work:

First, it removes the ModelBuildsFromData interface because it was, well, pointless. Hahah! The Model interface was already extending it, so there's no BC concern here.

Second, ModelReadOnly was also removed because it's a bit of a misnomer. What it really does it allow for the model to be queried but not saved; the model object is still writable. As a note, it would be cool to add "read only" as a property definition feature.

Third, it renames ModelCRUD to ModelPersistable to make it more readable also clearer what it's purpose is.

@JasonTheAdams JasonTheAdams merged commit 9d33cd7 into release/2.0.0 Oct 1, 2025
2 checks passed
@JasonTheAdams JasonTheAdams deleted the refactor/consolidate-contracts branch October 1, 2025 00:05
@JasonTheAdams JasonTheAdams added this to the 2.0 milestone Oct 1, 2025
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.

3 participants