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

Allow no content header if payload is empty #26

Closed dschenkelman closed 9 years ago

dschenkelman commented 9 years ago

This provides support for schemas that have type type: [ 'object', 'null' ]. Basically, optional payloads.

coveralls commented 9 years ago

Coverage Status

Coverage increased (+0.04%) when pulling 614f63503b5515e5073d31e632e61f67869259c4 on dschenkelman:master into b224188191f80f0fc96325713329431e342965a4 on mac-:master.

coveralls commented 9 years ago

Coverage Status

Coverage increased (+0.04%) when pulling 42bba054c07ed9996e88779a9bf77692b649244a on dschenkelman:master into b224188191f80f0fc96325713329431e342965a4 on mac-:master.