semapps
semapps copied to clipboard
Create a shape validation service
In some cases, especially when working with external data, validating data will become easier and more reliable when validating data at the beginning of a transaction once and then being able to rely on the validation.
In addition to using the shapes for typing support, we can use them to validate (or filter) incoming data.
This includes
- A new service with actions to validate data against a certain shape
- A moleculer mixin for controlled containers which you can use to constrain the shape of a given LDP container
- A custom validator for Moleculer which you can use to specify the required shape of parameters?