import { validatePerson, validateVcard } from '@cicnet/schemas-data-validator'; async function personValidation(person: any): Promise { const personValidationErrors: any = await validatePerson(person); if (personValidationErrors) { personValidationErrors.map((error) => console.error(`${error.message}`, person, error)); } } async function vcardValidation(vcard: any): Promise { const vcardValidationErrors: any = await validateVcard(vcard); if (vcardValidationErrors) { vcardValidationErrors.map((error) => console.error(`${error.message}`, vcard, error)); } } export { personValidation, vcardValidation };