Fixed missing isWildcard method used in templates (#5714)

This commit is contained in:
Soliman 2017-05-29 05:34:09 +02:00 committed by wing328
parent 424a70bd8c
commit 009a039fc5

View File

@ -23,6 +23,10 @@ public class CodegenResponse {
public String jsonSchema; public String jsonSchema;
public Map<String, Object> vendorExtensions; public Map<String, Object> vendorExtensions;
public boolean isWildcard() {
return "0".equals(code) || "default".equals(code);
}
@Override @Override
public String toString() { public String toString() {
return String.format("%s(%s)", code, containerType); return String.format("%s(%s)", code, containerType);