Skip to content
This repository was archived by the owner on Mar 16, 2025. It is now read-only.

Commit 79b94a3

Browse files
committed
#78, recognize new option
1 parent f5588c3 commit 79b94a3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/main/kotlin/io/openapiprocessor/core/converter/OptionsConverter.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class OptionsConverter(private val checkObsoleteProcessorOptions: Boolean = fals
5656
options.modelNameSuffix = mapping.options.modelNameSuffix
5757
options.beanValidation = mapping.options.beanValidation
5858
options.javadoc = mapping.options.javadoc
59+
options.oneOfInterface = mapping.options.oneOfInterface
5960
options.formatCode = mapping.options.formatCode
6061
}
6162
}

src/main/kotlin/io/openapiprocessor/core/processor/mapping/v2/Options.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ data class Options(
3737
*/
3838
val modelNameSuffix: String = String.Empty,
3939

40+
/**
41+
* generate common interface for an `oneOf` object list (optional)
42+
*/
43+
val oneOfInterface: Boolean = false,
44+
4045
/**
4146
* enable/disable the code formatter (optional)
4247
*/

0 commit comments

Comments
 (0)