forked from loafle/openapi-generator-original
added required flag for parameter
This commit is contained in:
parent
053419234a
commit
40b4d34870
@ -1,7 +1,7 @@
|
||||
package com.wordnik.swagger.codegen;
|
||||
|
||||
public class CodegenParameter {
|
||||
public Boolean hasMore = null, isContainer = null, secondaryParam = null;
|
||||
public Boolean hasMore = null, isContainer = null, secondaryParam = null, required = null;
|
||||
public String baseName, paramName, dataType, collectionFormat, description, baseType;
|
||||
public Boolean isQueryParam, isPathParam, isHeaderParam, isCookieParam, isBodyParam;
|
||||
}
|
@ -705,6 +705,7 @@ public class DefaultCodegen {
|
||||
p.isQueryParam = new Boolean(true);
|
||||
}
|
||||
else if(param instanceof PathParameter) {
|
||||
p.required = true;
|
||||
pathParams.add(p);
|
||||
p.isPathParam = new Boolean(true);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user