File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
api/src/main/kotlin/io/wwan13/api/document/snippets Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ infix fun <T : Enum<T>> String.isTypeOf(enumType: ENUM<T>): DocumentField {
11
11
return DocumentField (
12
12
identifier = this ,
13
13
type = enumType,
14
- enumValues = " ( ${ enumType.entries.joinToString( " , " )} ) "
14
+ enumValues = enumType.entries.toString()
15
15
)
16
16
}
17
17
@@ -28,12 +28,12 @@ data class DocumentField(
28
28
val type : FieldType ,
29
29
var description : String = " " ,
30
30
var required : Boolean = true ,
31
- val enumValues : String? = null
31
+ val enumValues : String = " "
32
32
) {
33
33
fun toFieldDescriptor (): FieldDescriptor {
34
34
val descriptor = PayloadDocumentation .fieldWithPath(identifier)
35
35
.type(type.value)
36
- .description(description + enumValues )
36
+ .description(description)
37
37
if (! required) {
38
38
descriptor.optional()
39
39
}
You can’t perform that action at this time.
0 commit comments