oferei / json-gate

A friendly, fast JSON schema validator
MIT License
100 stars 16 forks source link

"Asynchronous" #32

Open englercj opened 9 years ago

englercj commented 9 years ago

I think the readme/comments should be reworded, it says that if you pass a callback the function will execute asynchronously which is not true. It still runs synchronously, it just passes the error/data to the callback. I was confused for a while why it wasn't acting asynchronously.

oferei commented 9 years ago

I suppose you're right. how do you suppose it should be worded? "asynchronous syntax"?

englercj commented 9 years ago

@oferei Doesn't have to be too complicated, "you can pass a callback that will receive the error and result, or don't pass one and any errors will be thrown."