Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ public class CodegenOperation {
*
* @return true if parameter exists, false otherwise
*/
private static boolean nonempty(List<CodegenParameter> params) {
private static boolean nonempty(List<?> params) {
return params != null && params.size() > 0;
}

/**
* Check if there's at least one body parameter
*
Expand Down Expand Up @@ -91,6 +91,15 @@ public boolean getHasFormParams() {
return nonempty(formParams);
}

/**
* Check if there's at least one example parameter
*
* @return true if examples parameter exists, false otherwise
*/
public boolean getHasExamples() {
return nonempty(examples);
}

/**
* Check if act as Restful index method
*
Expand Down