You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/extensions/OpenApiGeneratorValidateExtension.kt
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -34,4 +34,9 @@ open class OpenApiGeneratorValidateExtension(project: Project) {
34
34
* Whether to offer recommendations related to the validated specification document.
35
35
*/
36
36
val recommend = project.objects.property<Boolean>().convention(true)
37
+
38
+
/**
39
+
* Whether to treat warnings as errors and fail the task.
40
+
*/
41
+
val treatWarningsAsErrors = project.objects.property<Boolean>().convention(false)
Copy file name to clipboardExpand all lines: modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/tasks/ValidateTask.kt
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,10 @@ open class ValidateTask : DefaultTask() {
60
60
@Input
61
61
val recommend = project.objects.property<Boolean>().convention(true)
62
62
63
+
@Optional
64
+
@Input
65
+
val treatWarningsAsErrors = project.objects.property<Boolean>().convention(false)
0 commit comments