public class ModelUtils extends Object
| Constructor and Description | 
|---|
ModelUtils()  | 
| Modifier and Type | Method and Description | 
|---|---|
static io.swagger.v3.oas.models.Operation[] | 
createOperationArray(io.swagger.v3.oas.models.PathItem pathItem)  | 
static String | 
findCommonPrefixOfVars(List<Object> vars)
Returns the common prefix of variables for enum naming 
 | 
static CodegenModel | 
getModelByName(String name,
              Map<String,Object> models)
Searches for the model by name in the map of models and returns it 
 | 
static void | 
processCodegenModels(Map<String,CodegenModel> allModels)  | 
static void | 
processModelEnums(Map<String,Object> objs)  | 
static String | 
toEnumVarName(String value)  | 
static void | 
updateCodegenPropertyEnum(CodegenProperty var)
Update codegen property's enum by adding "enumVars" (with name and value) 
 | 
public static CodegenModel getModelByName(String name, Map<String,Object> models)
name - Name of the modelmodels - Map of modelspublic static io.swagger.v3.oas.models.Operation[] createOperationArray(io.swagger.v3.oas.models.PathItem pathItem)
public static void processCodegenModels(Map<String,CodegenModel> allModels)
public static String findCommonPrefixOfVars(List<Object> vars)
vars - List of variable namespublic static void updateCodegenPropertyEnum(CodegenProperty var)
var - list of CodegenPropertyCopyright © 2019. All rights reserved.