File tree 1 file changed +8
-0
lines changed
openapi-processor-core/src/testInt/kotlin/io/openapiprocessor/core
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,18 @@ package io.openapiprocessor.core
7
7
8
8
import io.openapiprocessor.core.framework.FrameworkAnnotations
9
9
import io.openapiprocessor.core.model.Annotation
10
+ import io.openapiprocessor.core.model.EndpointResponseStatus
10
11
import io.openapiprocessor.core.model.parameters.Parameter
11
12
import io.openapiprocessor.core.parser.HttpMethod
12
13
13
14
val MAPPING = Annotation (" annotation.Mapping" )
14
15
val PARAMETER = Annotation (" annotation.Parameter" )
16
+ val STATUS = Annotation (" annotation.Status" )
15
17
16
18
/* *
17
19
* simple [io.openapiprocessor.core.framework.FrameworkAnnotations] implementation for testing.
20
+ *
21
+ * this also exists as a groovy version
18
22
*/
19
23
class TestFrameworkAnnotations : FrameworkAnnotations {
20
24
@@ -25,4 +29,8 @@ class TestFrameworkAnnotations: FrameworkAnnotations {
25
29
override fun getAnnotation (parameter : Parameter ): Annotation {
26
30
return PARAMETER
27
31
}
32
+
33
+ override fun getAnnotation (status : EndpointResponseStatus ): Annotation {
34
+ return STATUS
35
+ }
28
36
}
You can’t perform that action at this time.
0 commit comments