Validation Submodule
The validation submodule provides validation parser functions for each of the property in the application state. Running validation functions come in handy when mapping/transforming the data to VONQ compatible data.
The validation submodule is used throughout the HAPI Elements Javascript API, such as the state module setters, service functions, API requests.
Common Validations
There are some common validations that do not belong to a particular HAPI Elements module (like orderJourney
or product
). These validations reside in window.hapiValidation.common
and can NOT be accessed via window.hapi.common
as we don't have a common
module (just validations).
For rest of the available validations, check modules in the Playground.