@@ -31,12 +31,13 @@ class Endpoint(
31
31
}
32
32
33
33
/* *
34
- * all possible responses for an openapi status ('200', '2xx',... or 'default'). If the given
35
- * status has no responses the result is an empty list.
34
+ * all possible responses for an openapi status ('200', '2xx', ... or 'default'). If the given
35
+ * status has no responses, the result is an empty list.
36
36
*
37
37
* @param status the response status
38
38
* @return the list of responses
39
39
*/
40
+ @Deprecated(" only used in class" )
40
41
private fun getResponses (status : String ): List <Response > {
41
42
if (! responses.containsKey (status)) {
42
43
return emptyList()
@@ -53,6 +54,7 @@ class Endpoint(
53
54
*
54
55
* @return the set of content types
55
56
*/
57
+ @Deprecated(" only used in test" )
56
58
fun getConsumesContentTypes (): Set <String > {
57
59
val contentTypes = requestBodies
58
60
.map { it.contentType }
@@ -70,7 +72,7 @@ class Endpoint(
70
72
}
71
73
72
74
// not needed.... => EndpointResponse.getContentTypes()
73
- // only called by tests?
75
+ @Deprecated( " only used in test " )
74
76
fun getProducesContentTypes (status : String ): List <String > {
75
77
val responses = getResponses (status)
76
78
val errors = getErrorResponses ()
@@ -96,6 +98,8 @@ class Endpoint(
96
98
*
97
99
* @param status the response status
98
100
* @return first response of status
101
+ *
102
+ * only used in test
99
103
*/
100
104
fun getFirstResponse (status : String ): Response ? {
101
105
if (! responses.containsKey (status)) {
0 commit comments