Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add input flag
Add input flag copied from `ValidateTask`

Fixes #5965
  • Loading branch information
kierans committed Apr 17, 2020
commit 743c3f05915fc855cc78e3605dd3baaa74216fbf
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import org.openapitools.codegen.config.GlobalSettings
*
* Example (CLI):
*
* ./gradlew -q openApiGenerate
* ./gradlew -q openApiGenerate --input=/path/to/file
*
* @author Jim Schubert
*/
Expand Down Expand Up @@ -68,6 +68,14 @@ open class GenerateTask : DefaultTask() {
@get:Internal
val outputDir = project.objects.property<String>()

@Suppress("unused")
@get:Internal
@set:Option(option = "input", description = "The input specification.")
var input: String? = null
set(value) {
inputSpec.set(value)
}

/**
* The Open API 2.0/3.x specification location.
*/
Expand Down