-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Path to OpenAPI spec file is required in CLI command even when using a --settings-file
parameter.
#149
Comments
@Ekkeir thanks for taking the time to report this This can definitely be improved, and rather easily as well. I can make the mandatory input file argument optional so users can decide to specify it via the settings file instead |
@all-contributors please add @Ekkeir for bug |
I've put up a pull request to add @Ekkeir! 🎉 |
@christianhelle Sounds great.
On the other hand, though, it could be covered by documentation as a declared behaviour instead of runtime error/warning. |
@Ekkeir I think I can find some time to work on this today |
A new and a very convenient feature allows us to use refitter file via CLI with a
--settings-file
option in the following manner:refitter ./openapi.json --settings-file ./openapi.refitter
.The path to OpenAPI spec file (
./openapi.json
) cannot be dropped from the CLI command as it results inInput file is required
error.At the same time refitter file has an
openApiPath
parameter with seemingly the same meaning. Thus it seems redundant and error-prone to have a mandatory path in a CLI command as it becomes unclear which of the paths would be used in the end - the one in CLI command or the one in .refitter file.The text was updated successfully, but these errors were encountered: