joi allow additional properties code example Example: joi allow additional properties schema.validate(myData, { allowUnknown: true });