Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support List of of Value Objects #429

Merged
merged 1 commit into from
May 30, 2024
Merged

Conversation

subhashb
Copy link
Contributor

Specific changes:

  • Update List field to support ValueObject content type
  • Allow ValueObjects to output dict even when outside an entity or aggregate
  • Support serialization of Value Objects in SQLAlchemy with a custom JSON serializer

This functionality will come in handy when embedding List of Value Objects in containers like Events, which need to enclose all information related to the event within themselves.

Fixes #422

Specific changes:
- Update `List` field to support Value Object content type
- Allow ValueObjects to output dict even when outside an entity or aggregate
- Support serialization of Value Objects in SQLAlchemy with a custom JSON serializer

This will come handy when embedding List of Value Objects in containers like Events,
which need to enclose all information related to the event within themselves.
@subhashb subhashb self-assigned this May 30, 2024
@subhashb subhashb merged commit 90cd0f3 into main May 30, 2024
4 checks passed
@subhashb subhashb deleted the 422-support-list-of-value-objects branch May 30, 2024 22:19
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.

Add support for List(ValueField(VO))
1 participant