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

Handles case when error path does not exist #14

Closed dschenkelman closed 9 years ago

dschenkelman commented 9 years ago

Turns out missing paths are possible :) if coming from ratify: https://github.com/mac-/ratify/blob/master/lib/RouteSchemaManager.js#L230

If this is not handled a 500 occurs instead of 400

mac- commented 9 years ago

good call, thanks for fixing this!