File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
modules/swagger-codegen/src/main/java/io/swagger/codegen Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,10 @@ public class CodegenOperation {
42
42
*
43
43
* @return true if parameter exists, false otherwise
44
44
*/
45
- private static boolean nonempty (List <CodegenParameter > params ) {
45
+ private static boolean nonempty (List <? > params ) {
46
46
return params != null && params .size () > 0 ;
47
47
}
48
-
48
+
49
49
/**
50
50
* Check if there's at least one body parameter
51
51
*
@@ -91,6 +91,15 @@ public boolean getHasFormParams() {
91
91
return nonempty (formParams );
92
92
}
93
93
94
+ /**
95
+ * Check if there's at least one example parameter
96
+ *
97
+ * @return true if examples parameter exists, false otherwise
98
+ */
99
+ public boolean getHasExamples () {
100
+ return nonempty (examples );
101
+ }
102
+
94
103
/**
95
104
* Check if act as Restful index method
96
105
*
You can’t perform that action at this time.
0 commit comments