Skip to content

Commit

Permalink
작업완료
Browse files Browse the repository at this point in the history
  • Loading branch information
goyounha11 committed Jul 23, 2024
1 parent 8a23859 commit 4014164
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/kotlin/com/goyounha11/docs/DocsUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ object DocsUtil {
val responseNode: JsonNode? = response.contentAsString.takeIf { it.isNotBlank() }?.let { objectMapper.readTree(it) }
val apiResultType = object : TypeReference<ApiResult<Any>>() {}
val responseObject: ApiResult<Any>? = responseNode?.let { objectMapper.readValue(it.toString(), apiResultType) }
val data = responseObject?.data

val responseFieldDescriptors = createFieldDescriptors(responseObject, ApiResult::class, responseClazz?.kotlin)

Expand All @@ -81,7 +80,7 @@ object DocsUtil {
if (obj == null) return emptyList()

val fieldDescriptors = mutableListOf<FieldDescriptor>()
val properties = wrapperClazz?.memberProperties ?: return emptyList()
val properties = wrapperClazz?.memberProperties ?: obj::class.memberProperties

properties.forEach { property ->
val key = property.name
Expand Down

0 comments on commit 4014164

Please sign in to comment.