Skip to content

Commit d58241f

Browse files
authored
Fix orval-labs#2431: Input docs for secure URL
1 parent ef77aa0 commit d58241f

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

  • docs/src/pages/reference/configuration

docs/src/pages/reference/configuration/input.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,27 @@ module.exports = {
1919
};
2020
```
2121

22+
Using a secure URL target with authentication:
23+
24+
```js
25+
module.exports = {
26+
petstore: {
27+
input: {
28+
target: 'https://example.com/api-docs/v2/swagger.yaml',
29+
parserOptions: {
30+
resolve: {
31+
http: {
32+
headers: {
33+
Authorization: 'Basic ' + Buffer.from('username:password').toString('base64'),
34+
},
35+
},
36+
},
37+
},
38+
},
39+
},
40+
};
41+
```
42+
2243
## validation
2344

2445
Type: `Boolean | Object`

0 commit comments

Comments
 (0)