@@ -13,7 +13,6 @@ public class Snippet {
1313
1414 public String testName ;
1515 public boolean isSnippet ;
16- public boolean ignoreResponse ;
1716
1817 public String method ;
1918 public Map <String , Object > parameters ;
@@ -34,7 +33,6 @@ public String toString() {
3433 sb .append ("class Request {\n " );
3534 sb .append (" testName: " ).append (testName ).append ("\n " );
3635 sb .append (" isSnippet" ).append (isSnippet ).append ("\n " );
37- sb .append (" ignoreResponse" ).append (ignoreResponse ).append ("\n " );
3836 sb .append (" method: " ).append (method ).append ("\n " );
3937 sb .append (" parameters: " ).append (parameters ).append ("\n " );
4038 sb .append (" requestOptions: " ).append (requestOptions ).append ("\n " );
@@ -75,13 +73,10 @@ public void addMethodCall(Map<String, Object> context, ParametersWithDataType pa
7573
7674 // Determines whether the endpoint is expected to return a response payload deserialized
7775 // and therefore a variable to store it into.
78- if (!ignoreResponse ) {
79- context .put ("hasResponse" , true );
80-
81- for (CodegenResponse response : ope .responses ) {
82- if (response .code .equals ("204" )) {
83- context .put ("hasResponse" , false );
84- }
76+ context .put ("hasResponse" , true );
77+ for (CodegenResponse response : ope .responses ) {
78+ if (response .code .equals ("204" )) {
79+ context .put ("hasResponse" , false );
8580 }
8681 }
8782
0 commit comments