forked from loafle/openapi-generator-original
formatting, vendor extensions on operations
This commit is contained in:
parent
5940f46f56
commit
1520ec536e
@ -29,6 +29,7 @@ public class CodegenOperation {
|
||||
public Set<String> imports = new HashSet<String>();
|
||||
public List<Map<String, String>> examples;
|
||||
public ExternalDocs externalDocs;
|
||||
public Map<String, Object> vendorExtensions;
|
||||
|
||||
private boolean nonempty(List<CodegenParameter> params)
|
||||
{
|
||||
|
@ -15,7 +15,6 @@ public class CodegenParameter {
|
||||
public Map<String, Object> allowableValues;
|
||||
public Map<String, Object> vendorExtensions;
|
||||
|
||||
|
||||
/**
|
||||
* Determines whether this parameter is mandatory. If the parameter is in "path",
|
||||
* this property is required and its value MUST be true. Otherwise, the property
|
||||
|
@ -848,6 +848,7 @@ public class DefaultCodegen {
|
||||
public CodegenOperation fromOperation(String path, String httpMethod, Operation operation, Map<String, Model> definitions) {
|
||||
CodegenOperation op = CodegenModelFactory.newInstance(CodegenModelType.OPERATION);
|
||||
Set<String> imports = new HashSet<String>();
|
||||
op.vendorExtensions = operation.getVendorExtensions();
|
||||
|
||||
String operationId = operation.getOperationId();
|
||||
if (operationId == null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user