Skip to content

Commit 38ffbdf

Browse files
authored
Add instructions for HTTP headers to README
1 parent 275e799 commit 38ffbdf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ expect(subject).to validate(
7474
)
7575
```
7676

77+
HTTP headers can be specified via the `_headers` key:
78+
79+
```ruby
80+
expect(subject).to validate(
81+
:get '/deals', 200, {"_headers" => {'accept' => 'application/json'} }
82+
)
83+
```
84+
7785
Your Swagger.json can be validated against additional custom schemata, for example to enforce organisation API documentation standards, by using the following syntax:
7886

7987
```ruby

0 commit comments

Comments
 (0)