Categories:
Channeldata validator middleware
Description of channeldata-validator-middleware, in charge of the validation of the request channelData for normalized versions
Introduction
The source code of this middleware is included in this Github repository.
This middleware will check if the channelData of the incoming request is valid or not. This validation is made:
- If the environment variable
AURA_CHANNELDATA_VALIDATIONis set totrue. - If the incoming
channelDataversion is greater or equal thanAURA_CHANNELDATA_VALIDATION_MIN_VERSION. - If a validator for this version exists. Validators are loaded using schemas stored in aura-models package.
If the validation is ok or is not executed because one or more of the previous conditions are not satisfied, aura-groot continues the normal flow, executing the rest of middlewares.
If the validation fails, the error message core:core.model-validation.request.error will be returned to the user and no more middlewares will be executed.
Last modified December 17, 2024: feat: Documentation Aura Root/ATRIA for Kiss release #AURA-26082 [RTM] (63128ced)