mac- / ratify

A Hapi plugin for validating the schema of path, query, request body, and response body params using JSON-schema
MIT License
71 stars 27 forks source link

Consider migrating to pandastrike/jsck #32

Open dschenkelman opened 9 years ago

dschenkelman commented 9 years ago

Seems to be ~2x as fast as z-schema http://gilesbowkett.blogspot.co.uk/2015/01/why-panda-strike-wrote-fastest-json.html.

Might be worth exploring since this is something that is executed on every request.

Thoughts?

mac- commented 9 years ago

Funny you mention this because I was just looking at that very blog post earlier this week and was considering the same thing.

mac- commented 9 years ago

maybe there is a faster one yet: https://github.com/Muscula/json-schema-benchmark

dschenkelman commented 9 years ago

Wow, that's a huge difference.

ghost commented 8 years ago

I was actually about to suggest that the actual JSON Schema validator could be user-defined... But if you're switching to ajv, then never mind. :)