Skip to content

Commit 0cc5fce

Browse files
committed
fix deprecated
1 parent eb970c4 commit 0cc5fce

File tree

1 file changed

+1
-1
lines changed
  • json-schema-validator/src/test/kotlin/io/openapiprocessor/jsonschema/validator/support

1 file changed

+1
-1
lines changed

json-schema-validator/src/test/kotlin/io/openapiprocessor/jsonschema/validator/support/Draft.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ fun draftSpec(
136136

137137
val mapper = ObjectMapper()
138138
mapper.enable(SerializationFeature.INDENT_OUTPUT)
139-
mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL)
139+
mapper.setDefaultPropertyInclusion(JsonInclude.Include.NON_NULL)
140140
println(mapper.writeValueAsString(output))
141141

142142
// check valid

0 commit comments

Comments
 (0)