Need for Optimization
Schema validation happens inside flask layer at the moment. Introduce schema validation at the database layer to increase our confidence in the system.
Describe Desired Optimization
Add schema argument on both get and post in collection_utils.py and ensure that it's required.
Additional Context
This will help us further in downstream tasks such as database migration, etc.
Need for Optimization
Schema validation happens inside flask layer at the moment. Introduce schema validation at the database layer to increase our confidence in the system.
Describe Desired Optimization
Add schema argument on both get and post in
collection_utils.pyand ensure that it's required.Additional Context
This will help us further in downstream tasks such as database migration, etc.