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 List<CodegenSecurity> |
getOAuthMethods(List<CodegenSecurity> authMethods)
Returns a list of OAuth Codegen security objects
|
static Map<String,io.swagger.v3.oas.models.security.SecurityScheme> |
getSecuritySchemes(io.swagger.v3.oas.models.OpenAPI openAPI) |
static boolean |
hasApiKeyMethods(List<CodegenSecurity> authMethods)
Returns true if the specified OAS model has at least one operation with API keys.
|
static boolean |
hasApiKeyMethods(io.swagger.v3.oas.models.OpenAPI openAPI)
Returns true if the specified OAS model has at least one operation with API key authentication.
|
static boolean |
hasHttpBasicMethods(List<CodegenSecurity> authMethods)
Returns true if the specified OAS model has at least one operation with the HTTP basic
security scheme.
|
static boolean |
hasHttpBasicMethods(io.swagger.v3.oas.models.OpenAPI openAPI)
Returns true if the specified OAS model has at least one operation with HTTP basic authentication.
|
static boolean |
hasHttpBearerMethods(List<CodegenSecurity> authMethods)
Returns true if the specified OAS model has at least one operation with HTTP bearer.
|
static boolean |
hasHttpBearerMethods(io.swagger.v3.oas.models.OpenAPI openAPI)
Returns true if the specified OAS model has at least one operation with HTTP bearer authentication.
|
static boolean |
hasHttpSignatureMethods(List<CodegenSecurity> authMethods)
Returns true if the specified OAS model has at least one operation with the HTTP basic
security scheme.
|
static boolean |
hasHttpSignatureMethods(io.swagger.v3.oas.models.OpenAPI openAPI)
Returns true if the specified OAS model has at least one operation with HTTP signature authentication.
|
static boolean |
hasOAuthMethods(List<CodegenSecurity> authMethods)
Returns true if the specified OAS model has at least one operation with OAuth.
|
static boolean |
hasOAuthMethods(io.swagger.v3.oas.models.OpenAPI openAPI)
Returns true if the specified OAS model has at least one operation with OAuth authentication.
|
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 hasHttpBasicMethods(List<CodegenSecurity> authMethods)
authMethods - List of auth methods.public static boolean hasApiKeyMethods(List<CodegenSecurity> authMethods)
authMethods - List of auth methods.public static boolean hasHttpSignatureMethods(List<CodegenSecurity> authMethods)
authMethods - List of auth methods.public static boolean hasHttpBearerMethods(List<CodegenSecurity> authMethods)
authMethods - List of auth methods.public static boolean hasOAuthMethods(List<CodegenSecurity> authMethods)
authMethods - List of auth methods.public static List<CodegenSecurity> getOAuthMethods(List<CodegenSecurity> authMethods)
authMethods - List of auth methods.public static boolean hasOAuthMethods(io.swagger.v3.oas.models.OpenAPI openAPI)
openAPI - An instance of OpenAPIpublic static boolean hasHttpBearerMethods(io.swagger.v3.oas.models.OpenAPI openAPI)
openAPI - An instance of OpenAPIpublic static boolean hasHttpBasicMethods(io.swagger.v3.oas.models.OpenAPI openAPI)
openAPI - An instance of OpenAPIpublic static boolean hasHttpSignatureMethods(io.swagger.v3.oas.models.OpenAPI openAPI)
openAPI - An instance of OpenAPIpublic static boolean hasApiKeyMethods(io.swagger.v3.oas.models.OpenAPI openAPI)
openAPI - An instance of OpenAPICopyright © 2021. All rights reserved.