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/OpenApiGeneratorPlugin.kt
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -125,6 +125,7 @@ class OpenApiGeneratorPlugin : Plugin<Project> {
Copy file name to clipboardExpand all lines: modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/extensions/OpenApiGeneratorGenerateExtension.kt
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -201,6 +201,11 @@ open class OpenApiGeneratorGenerateExtension(project: Project) {
201
201
*/
202
202
val removeOperationIdPrefix = project.objects.property<Boolean?>()
203
203
204
+
/**
205
+
* Skip examples defined in the operation
206
+
*/
207
+
val skipOperationExample = project.objects.property<Boolean?>()
208
+
204
209
/**
205
210
* Defines which API-related files should be generated. This allows you to create a subset of generated files (or none at all).
206
211
*
@@ -333,4 +338,4 @@ open class OpenApiGeneratorGenerateExtension(project: Project) {
Copy file name to clipboardExpand all lines: modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/tasks/GenerateTask.kt
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -304,6 +304,13 @@ open class GenerateTask : DefaultTask() {
304
304
@Input
305
305
val removeOperationIdPrefix = project.objects.property<Boolean?>()
306
306
307
+
/**
308
+
* Remove examples defined in the operation
309
+
*/
310
+
@Optional
311
+
@Input
312
+
val skipOperationExample = project.objects.property<Boolean?>()
313
+
307
314
/**
308
315
* Defines which API-related files should be generated. This allows you to create a subset of generated files (or none at all).
309
316
*
@@ -615,6 +622,10 @@ open class GenerateTask : DefaultTask() {
Copy file name to clipboardExpand all lines: modules/openapi-generator-maven-plugin/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,7 @@ mvn clean compile
70
70
| `ignoreFileOverride` | `openapi.generator.maven.plugin.ignoreFileOverride` | specifies the full path to a `.openapi-generator-ignore` used for pattern based overrides of generated outputs
71
71
| `httpUserAgent` | `openapi.generator.maven.plugin.httpUserAgent` | Sets custom User-Agent header value
| `skipValidateSpec` | `openapi.generator.maven.plugin.skipValidateSpec` | Whether or not to skip validating the input spec prior to generation. By default, invalid specifications will result in an error.
0 commit comments