File tree 2 files changed +6
-4
lines changed
openapi-processor-core/src/main/kotlin/io/openapiprocessor/core/model
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -15,4 +15,7 @@ class EmptyResponse(
15
15
contentType : String = " ?" ,
16
16
responseType : DataType = NoneDataType (),
17
17
description : String? = null
18
- ): Response(contentType, responseType, description)
18
+ ): Response(contentType, responseType, description) {
19
+ override val empty
20
+ get() = true
21
+ }
Original file line number Diff line number Diff line change 6
6
package io.openapiprocessor.core.model
7
7
8
8
import io.openapiprocessor.core.model.datatypes.DataType
9
- import io.openapiprocessor.core.model.datatypes.NoneDataType
10
9
11
10
/* *
12
11
* Endpoint response properties.
@@ -19,6 +18,6 @@ open class Response(
19
18
val imports
20
19
get() = responseType.getImports()
21
20
22
- val empty
23
- get() = responseType is NoneDataType
21
+ open val empty
22
+ get() = false
24
23
}
You can’t perform that action at this time.
0 commit comments