Skip to content

Commit b01dd41

Browse files
DeepikaSridhar2112DeepikaSridharrwing328codefish1
authored
bugfix: openapi code generator to consider schema changes (#16735)
* bugfix: added schema location property * fix: #16723 open api schema refresh issue * Update modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/tasks/GenerateTask.kt Co-authored-by: David Morris <[email protected]> --------- Co-authored-by: dsridhar <[email protected]> Co-authored-by: William Cheng <[email protected]> Co-authored-by: David Morris <[email protected]>
1 parent 36367e7 commit b01dd41

File tree

1 file changed

+9
-0
lines changed
  • modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/tasks

1 file changed

+9
-0
lines changed

modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/tasks/GenerateTask.kt

+9
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,15 @@ open class GenerateTask @Inject constructor(private val objectFactory: ObjectFac
8080
@Input
8181
val generatorName = project.objects.property<String>()
8282

83+
/**
84+
* This is the configuration for reference paths where schemas for openapi generation are stored
85+
* The directory which contains the additional schema files
86+
*/
87+
@Optional
88+
@InputDirectory
89+
@PathSensitive(PathSensitivity.ABSOLUTE)
90+
val schemaLocation = project.objects.property<String>()
91+
8392
/**
8493
* The output target directory into which code will be generated.
8594
*/

0 commit comments

Comments
 (0)