tim-vandecasteele/grape-swagger — pull request #9 by agileanimal (2012-08-17 23:47:28+00:00)
Title: Custom header support

Allows the passing of a headers hash inside the desc block with the notes:

```ruby
desc "Return super-secret information", {
notes: "SUPER SECRET",
headers: {
"XAuthToken" => {
description: "Valdates your identity",
required: true
},
XOptionalHeader" => {
description: "Not reallly needed",
required: false
}
}
}
```

Swagger is then able to add header parameters as appropriate.

This also adds tests to the helpers so that they can be tested independently.