garycourt / JSV

A JavaScript implementation of an extendable, fully compliant JSON Schema validator.
618 stars 84 forks source link

Asynchronous validators #66

Closed dolphin278 closed 11 years ago

dolphin278 commented 11 years ago

I wanna implement my own application-specific validators, that checks value correctness by performing external requests (asynchronously).

For example, I want to check, that some string field contains valid order number, and I can check it's validity only by referring to order processing system.

For now, as I can see, JSV validator is completely synchronous. Are there any plans on supporting asynchronous validation, or should I look for other validator then? Sure I can slap run custom validations by my own code, but it would be neat to have all validation checks in one place.

Thanks in advance.

garycourt commented 11 years ago

This is unlikely to ever be implemented as it would require a complete rewrite.