Repository navigation
feat: Add support for dynamic fields on models and endpoints - #5013
Merged
marcelomendoncasoares merged 10 commits intoMay 1, 2026
Merged
marcelomendoncasoares merged 10 commits into
marcelomendoncasoares merged 10 commits into
Conversation
marcelomendoncasoares
force-pushed
the
dynamic-serialization
branch
from
April 28, 2026 20:01
31f95bd to
e8edd99
Compare
marcelomendoncasoares
force-pushed
the
dynamic-serialization
branch
from
April 28, 2026 20:38
e8edd99 to
dc7570a
Compare
marcelomendoncasoares
marked this pull request as ready for review
April 28, 2026 21:45
nielsenko
approved these changes
May 1, 2026
nielsenko
self-requested a review
May 1, 2026 07:44
nielsenko
requested changes
May 1, 2026
nielsenko
left a comment
Collaborator
There was a problem hiding this comment.
A few nits.. and a potential problem
…ynamic-serialization
marcelomendoncasoares
force-pushed
the
dynamic-serialization
branch
from
May 1, 2026 14:26
89579a2 to
a90b1a2
Compare
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Implements the support for
dynamicfields in models and endpoints.Under the hood, it uses the same strategy that we apply for streaming endpoints to encode the value as a
Map<String, dynamic>. with the type on theclassNamekey.On the database, the value is stored in a
ColumnSerializableorColumnStructuredcolumn - according to the JSON/JSONB serialization data type.Closes: #4996
Closes: #3231
Related discussions:
Pre-launch Checklist
///), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.If you need help, consider asking for advice on the discussion board.
Breaking changes
None.