Skip to content

Commit 7007bb9

Browse files
Alan-ChaErikWittern
authored andcommitted
Add header option to CLI
Fix #89 Signed-off-by: Alan Cha <[email protected]>
1 parent 0b19d8e commit 7007bb9

File tree

4 files changed

+153
-49
lines changed

4 files changed

+153
-49
lines changed

packages/openapi-to-graphql-cli/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ Options:
3434
-f, --fillEmptyResponses create placeholder schemas for operations with no response body rather than ignore them
3535
-a, --addLimitArgument add a limit argument on fields returning lists of objects/lists to control the data size
3636
37+
-H, --header <key:value> add headers to every request; repeatable flag; set using key:value notation (default: [])
38+
3739
--no-viewer do not create GraphQL viewer objects for passing authentication credentials
38-
40+
3941
--no-extensions do not add extentions, containing information about failed REST calls, to the GraphQL errors objects
4042
--no-equivalentToMessages do not append information about the underlying REST operations to the description of fields
4143
-h, --help output usage information

packages/openapi-to-graphql-cli/lib/openapi-to-graphql.js

Lines changed: 57 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/openapi-to-graphql-cli/lib/openapi-to-graphql.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)