File tree 2 files changed +22
-0
lines changed
java/org/eclipse/microprofile/openapi/tck 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -1048,6 +1048,14 @@ public void testStaticFileDefinitions(String type) {
1048
1048
vr .body (callbacksPath + ".responses.'204'.description" ,
1049
1049
both (containsString ("Your server should return this HTTP status code if no longer interested" ))
1050
1050
.and (containsString ("in further updates" )));
1051
+
1052
+ // Test an operation with no responses
1053
+ String noResponsePath = "paths.'/streams'.get" ;
1054
+ vr .body (noResponsePath + ".description" , equalTo ("An operation without a response" ));
1055
+ vr .body (noResponsePath + ".parameters[0].name" , equalTo ("callbackUrl" ));
1056
+ vr .body (noResponsePath + ".parameters[0].description" ,
1057
+ equalTo ("the location where data will be sent. Must be network accessible\n "
1058
+ + "by the source server\n " ));
1051
1059
}
1052
1060
1053
1061
@ Test (dataProvider = "formatProvider" )
Original file line number Diff line number Diff line change 18
18
version : 1.0.0
19
19
paths :
20
20
/streams :
21
+ get :
22
+ description : An operation without a response
23
+ parameters :
24
+ - name : callbackUrl
25
+ in : query
26
+ required : true
27
+ description : |
28
+ the location where data will be sent. Must be network accessible
29
+ by the source server
30
+ schema :
31
+ type : string
32
+ format : uri
33
+ examples :
34
+ - https://tonys-server.com
21
35
post :
22
36
description : subscribes a client to receive out-of-band data
23
37
parameters :
You can’t perform that action at this time.
0 commit comments