overture-stack / lectern

Data Schema / Dictionary management system
GNU Affero General Public License v3.0
0 stars 1 forks source link

Move data validation functions into shared module #212

Closed joneubank closed 2 weeks ago

joneubank commented 2 weeks ago

Validation functionality provided by the Lectern Client is moved into its own module. This module is added at the path libraries/validation and will be published as @overture-stack/lectern-validation.

This module exports all logic for validating data record value types and all restrictions as defined in the current Lectern Dictionary. The validation pipelines and processing functions remain in the client for now as these will likely require refactoring along with the conditional restriction work. No sense to refactor them to support generalization when we will only tear them apart in a short time.

Changes