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

Add description and default value into the operation object for primitive types #37

Closed hernanhht closed 9 years ago

hernanhht commented 9 years ago

I was missing schema information for primitive types, add description and defaultValue to the operation object in that case.

hernanhht commented 9 years ago

Also add the swagger 'consumes' attribute in a per operation basis. Some Resources had operations that needed different 'consumes' attributes. This PR fixes that.