Meteor-Community-Packages / meteor-simple-schema

Meteor integration package for simpl-schema
https://github.com/Meteor-Community-Packages/meteor-simple-schema
MIT License
920 stars 162 forks source link

How to define a Custom Validation Error in Autoform >= 6.0 #727

Closed ghost closed 6 years ago

ghost commented 6 years ago

Hi there,

I don't know whether I just didn't find this passage in either the autoform, simpl-schema or messageBox readme/help but I could not happen to find a working solution of the new Syntax.

When using myValidationContext.addValidationErrors([{ name: 'password', type: 'wrongPassword' }]);

should I then take

AutoForm.getValidationContext(...); as Context?

Regards

aldeed commented 6 years ago

The Meteor SimpleSchema package is no longer maintained other than critical fixes to keep it running with each latest Meteor release. Closing non-critical issues in this repo. Anyone who cares about this may do one or more of the following: