Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Optionally call `validation` sync (without callback) #51

Open
grimen opened this Issue · 4 comments

3 participants

@grimen

I've reviewed some JSON Schema validation libraries and found this one solid, but the async-only validation bugs me a lot. I've noticed that most other similar libraries support synchronous calls, and I tried to figure out how much work it would require to make Amanda optionally sync as well but got a bit stuck in the search. How hard would it be to allow sync calls at this stage? Async mostly makes sense for bigger amounts of data, but for most a sync call would make more sense.

@luka5

+1 would be great

@ProCynic

you can get a workaround by passing in function(err) { return err; } as your callback. Every function in amanda does return callback();, so it bubbles all the way back up.

@grimen

@ProCynic Thanks, will try that out.

@grimen

Never managed to get this to work actually, not sure why - runs async anyway for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.