Skip to content Skip to sidebar Skip to footer

Appengine Ndb Property Validations

I wonder what the best approach is for validating NDB entity properties likes: a date must be in the future a grade (integer property) must be between 1 and 10 a reference to anot

Solution 1:

Not this is is always the best solution, but you could roll your own. Just pre-define a bunch of properties with reg-exs/mins and maxs etc. It seems like your properties are straight forward enough that it wouldn't be too difficult.


Post a Comment for "Appengine Ndb Property Validations"