apiaryio / api-blueprint

API Blueprint
https://apiblueprint.org
MIT License
8.64k stars 2.14k forks source link

Is my dredd.yml not being read? #368

Closed bkuhl closed 7 years ago

bkuhl commented 7 years ago

This seems like a silly question, but I'm struggling to get my dredd.yml config to include a header. I'm trying to keep all the config in a single dredd.yml but the CLI client still requires me to supply a .apib and a URL.

dredd --config=/var/www/html/dredd.yml /var/www/html/resources/docs/api-documentation.apib http://web/api/v1

dredd.yml

header: [Api-Key: xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx]
blueprint: resources/docs/hercule.apib
endpoint: 'http://web/api/v1'

Also, the header specified in this config file is not being included in the requests:

# Phone Numbers [/phone-number]

## Release a number [DELETE /phone-number/{uuid}]

+ Parameters
    + uuid: fdb283d4-7341-4517-b500-371d22d27cfc (string) UUID of a phone number provisioned under your api credentials.

+ Response 204

Result does not show a header:

request: 
body: 

headers: 
    User-Agent: Dredd/1.0.9 (Linux 4.4.20-moby; x64)

uri: /phone-number/fdb283d4
method: DELETE