public class ProcessUtils extends Object
| Constructor and Description |
|---|
ProcessUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addIndexToProperties(List<Object> models)
Add x-index extension to the model's properties
|
static void |
addIndexToProperties(List<Object> models,
int initialIndex)
Add x-index extension to the model's properties
|
static boolean |
hasBearerMethods(Map<String,Object> objs)
Returns true if at least one operation has Bearer security schema defined
|
static boolean |
hasHttpSignatureMethods(List<CodegenSecurity> authMethods)
Returns true if the specified OAS model has at least one operation with the HTTP signature
security scheme.
|
static boolean |
hasOAuthMethods(Map<String,Object> objs)
Returns true if at least one operation has OAuth security schema defined
|
public static void addIndexToProperties(List<Object> models, int initialIndex)
models - List of modelsinitialIndex - starting index to usepublic static void addIndexToProperties(List<Object> models)
models - List of modelspublic static boolean hasOAuthMethods(Map<String,Object> objs)
objs - Map of operationspublic static boolean hasBearerMethods(Map<String,Object> objs)
objs - Map of operationspublic static boolean hasHttpSignatureMethods(List<CodegenSecurity> authMethods)
authMethods - List of auth methods.Copyright © 2020. All rights reserved.