Skip to content

Commit b943015

Browse files
committed
GH-242 Ignore transient properties
1 parent c9c460a commit b943015

File tree

1 file changed

+1
-1
lines changed
  • openapi-specification/src/main/kotlin/io/javalin/openapi/experimental/processor/generators

1 file changed

+1
-1
lines changed

openapi-specification/src/main/kotlin/io/javalin/openapi/experimental/processor/generators/TypeSchemaGenerator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ internal fun ClassDefinition.findAllProperties(requireNonNulls: Boolean): Collec
250250
}
251251
}
252252

253-
if (property.getAnnotation(OpenApiIgnore::class.java) != null) {
253+
if (property.getAnnotation(OpenApiIgnore::class.java) != null || property.modifiers.contains(Modifier.TRANSIENT)) {
254254
continue
255255
}
256256

0 commit comments

Comments
 (0)