natesilva / jayschema

[Unmaintained] - A comprehensive JSON Schema validator for Node.js
BSD 3-Clause "New" or "Revised" License
217 stars 22 forks source link

Does Jayschema support concurrent validations? #31

Closed drewtunes closed 10 years ago

drewtunes commented 10 years ago

I would like to construct a JaySchema object once, register my schemas, and then use it asynchronously to validate objects as needed. Does Jayschema support concurrent object validations?

natesilva commented 10 years ago

The only shared state between validations are the schemas that you register (or are loaded by your loader function). So unless you’re doing something weird, like using two different schemas with the same ID, it shouldn’t be a problem.