Skip to content

Commit 10b63db

Browse files
committed
apply interceptors to json schema
1 parent f8645e3 commit 10b63db

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/main/kotlin/wu/seal/jsontokotlin/model/classscodestruct/DataClass.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ data class DataClass(
109109

110110

111111
override fun <T : KotlinClass> applyInterceptors(enabledKotlinClassInterceptors: List<IKotlinClassInterceptor<T>>): KotlinClass {
112-
if (fromJsonSchema) return this
113112
val newProperties = mutableListOf<Property>()
114113
properties.forEach {
115114
newProperties.add(it.copy(typeObject = it.typeObject.applyInterceptors(enabledKotlinClassInterceptors)))

src/main/kotlin/wu/seal/jsontokotlin/test/TestConfig.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@ object TestConfig {
7575
fun setToTestInitStateForJsonSchema() {
7676
isTestModel = true
7777
isCommentOff = false
78-
isOrderByAlphabetical = true
78+
isOrderByAlphabetical = false
7979
isPropertiesVar = false
8080
targetJsonConvertLib = TargetJsonConverter.None
8181
propertyTypeStrategy = PropertyTypeStrategy.AutoDeterMineNullableOrNot
82-
defaultValueStrategy = DefaultValueStrategy.AllowNull
82+
defaultValueStrategy = DefaultValueStrategy.None
8383
isNestedClassModel = false
8484
customPropertyAnnotationFormatString = "@SerialName(\"%s\")"
8585
customAnnotaionImportClassString = "import kotlinx.serialization.SerialName\n" +

0 commit comments

Comments
 (0)