Skip to content
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

[REQ] Feature Request Description #5965

Closed
kierans opened this issue Apr 17, 2020 · 2 comments
Closed

[REQ] Feature Request Description #5965

kierans opened this issue Apr 17, 2020 · 2 comments

Comments

@kierans
Copy link
Contributor

kierans commented Apr 17, 2020

Is your feature request related to a problem? Please describe.

The Gradle plugin openApiValidate task accepts a --input CLI flag to pass the path to the API spec. This is useful where the code generation is happening in a separate project to the development of the API spec. The openApiGenerate task does not, which makes it hard to specify the location of the spec for code generation.

Describe the solution you'd like

The openApiGenerate task to accept a --input flag

Describe alternatives you've considered

Passing properties to Gradle. However this interferes with IDE Gradle integration (eg: Android Studio), as, if the property is not found Gradle throws an error. There is currently no way to specify additional properties to the IDE for Gradle integration.

A CLI flag allows the user to pass the location of the spec to the task, without having to use more complex trickery.

Additional context

@kierans
Copy link
Contributor Author

kierans commented Apr 23, 2020

@jimschubert Are you able to take a look please?

@kierans
Copy link
Contributor Author

kierans commented Apr 25, 2020

Implemented in #5966

@kierans kierans closed this as completed Apr 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant