How to use the @talend/react-containers/lib/ComponentForm/kit/defaultRegistry.validation function in @talend/react-containers

To help you get started, we’ve selected a few @talend/react-containers examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Talend / component-runtime / component-tools-webapp / src / main / frontend / src / components / Detail / Detail.component.js View on Github external
const validationWithSuccessFeedback = ({ trigger, schema, body, errors }) => {
        if (body.status === 'OK' && trigger.type === 'healthcheck') {
            props.onNotification({
                id: `healthcheck_${new Date().getTime()}`,
                title: 'Success',
                message: body.comment || `Trigger ${trigger.type} / ${trigger.family} / ${trigger.action} succeeded`,
            });
        }
        return service.validation({ schema, body, errors });
    };
    const registry = {