minos-python
minos-python copied to clipboard
Implement a strategy for `Aggregate` validation
Issue by garciparedes
Thursday Sep 23, 2021 at 14:55 GMT
Originally opened as https://github.com/Clariteia/minos_microservice_aggregate/issues/5
This issue is intended to create a mechanism to perform Aggregates validation, probably before storing them on the corresponding Repository.
One of the requirements is that the function with the validation responsibility must be asynchronous, in order to perform any database queries as validation conditions.
The final purpose of this validation strategy will be to put together with the repository's writing operations and ensure the full consistency according to the provided validation logic.
One approach could be to simply add a validate() -> bool asynchronous method, but another solutions must be discussed.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.