Suggestion: Provide Check/Match Validation Example for Meteor Method Validations
Closed this issue · 2 comments
I know that check/match
are "on the way out" in some people's hearts...
But while simple-schema is moving from 1.0 to 2.0 and until 2.0 is actually stable for production use - a stable alternative is really needed.
I'm new to Meteor, so I reference the guide - A LOT and it's really great work. I thought that maybe this could make it even better for those coming after me.
It took me a really long time before I figured out a way to work around this.
In the sections:
https://guide.meteor.com/methods.html#advanced-boilerplate
https://guide.meteor.com/methods.html#validated-method
There is no alternative to simple-schema given, when a custom check/match function is a completely acceptable alternative.
My suggestion is simple - let's provide another example of a meteor method in these two places that demonstrates the use check/match for a simple meteor method.
I could possibly provide an example, but might need help editing the PR to make sure it's worthy for the guide.
Does 1.x still work? If so, my inclination would be to wait and switch when
they release a 2.0
On Tue, Aug 30, 2016 at 8:40 PM, Jeremy Iglehart notifications@github.com
wrote:
I know that check/match are "on the way out" in some people's hearts...
But while simple-schema is moving from 1.0 to 2.0
Meteor-Community-Packages/meteor-simple-schema#640 (comment)
and until 2.0 is actually stable for production use - a stable alternative
is really needed.I'm new to Meteor, so I reference the guide - A LOT and it's really great
work. I thought that maybe this could make it even better for those coming
after me.It took me a really long time before I figured out a way to work around
this.In the sections:
https://guide.meteor.com/methods.html#advanced-boilerplate
https://guide.meteor.com/methods.html#validated-methodThere is no alternative to simple-schema given, when a custom check/match
function is a completely acceptable alternative.My suggestion is simple - let's provide another example of a meteor method
in these two places that demonstrates the use check/match for a simple
meteor method.I could possibly provide an example, but might need help editing the PR to
make sure it's worthy for the guide.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#554, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAPVmH2hkmmHSeEdXUnUiGfFuyFVK0h5ks5qlM1xgaJpZM4JxHqK
.
I'm closing this issue because it's too old.
We are going to make many updates to the guide in the next weeks and it's better to focus on issues with recent activity. If you think this issue is still relevant please open a new one.