public class OpenLOpenAPIUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_JSON |
static int |
MIN_PARAMETERS_COUNT |
static String |
TEXT_PLAIN |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkVariations(io.swagger.v3.oas.models.OpenAPI openAPI,
Set<String> variationsSchemasName) |
static Map<String,Map<String,Integer>> |
collectPathsWithParams(io.swagger.v3.oas.models.Paths paths,
org.apache.commons.jxpath.JXPathContext jxPathContext) |
static ParameterModel |
extractParameter(Map.Entry<String,io.swagger.v3.oas.models.media.Schema> property,
org.apache.commons.jxpath.JXPathContext jxPathContext) |
static List<InputParameter> |
extractParameters(org.apache.commons.jxpath.JXPathContext jxPathContext,
Set<String> refsToExpand,
io.swagger.v3.oas.models.PathItem pathItem,
Map.Entry<io.swagger.v3.oas.models.PathItem.HttpMethod,io.swagger.v3.oas.models.Operation> operationEntry) |
static Map<String,io.swagger.v3.oas.models.media.Schema> |
getAllFields(org.apache.commons.jxpath.JXPathContext jxPathContext,
io.swagger.v3.oas.models.media.ComposedSchema cs) |
static Map<org.apache.commons.lang3.tuple.Pair<String,io.swagger.v3.oas.models.PathItem.HttpMethod>,Set<String>> |
getAllUsedRefResponses(io.swagger.v3.oas.models.Paths paths,
org.apache.commons.jxpath.JXPathContext jxPathContext) |
static Map<String,Integer> |
getAllUsedSchemaRefs(io.swagger.v3.oas.models.Paths paths,
org.apache.commons.jxpath.JXPathContext jxPathContext) |
static List<io.swagger.v3.oas.models.media.Schema> |
getInterfaces(io.swagger.v3.oas.models.media.ComposedSchema composed) |
static MediaTypeInfo |
getMediaType(io.swagger.v3.oas.models.media.Content content) |
static io.swagger.v3.parser.core.models.ParseOptions |
getParseOptions() |
static Map<String,Set<String>> |
getRefsInProperties(io.swagger.v3.oas.models.OpenAPI openAPI,
org.apache.commons.jxpath.JXPathContext jxPathContext) |
static io.swagger.v3.oas.models.responses.ApiResponse |
getResponse(org.apache.commons.jxpath.JXPathContext jxPathContext,
io.swagger.v3.oas.models.responses.ApiResponses apiResponses) |
static Map<String,io.swagger.v3.oas.models.media.Schema> |
getSchemas(io.swagger.v3.oas.models.OpenAPI openAPI) |
static Set<String> |
getUnusedSchemaRefs(io.swagger.v3.oas.models.OpenAPI openAPI,
Iterable<String> usedRefs) |
static io.swagger.v3.oas.models.media.Schema<?> |
getUsedSchemaInResponse(org.apache.commons.jxpath.JXPathContext jxPathContext,
io.swagger.v3.oas.models.Operation operation) |
static String |
normalizeName(String originalName) |
static <T> T |
resolve(org.apache.commons.jxpath.JXPathContext jxPathContext,
T obj,
Function<T,String> getRefFuc) |
static Object |
resolveByRef(org.apache.commons.jxpath.JXPathContext jxPathContext,
String ref) |
static Set<String> |
visitSchema(org.apache.commons.jxpath.JXPathContext jxPathContext,
io.swagger.v3.oas.models.media.Schema<?> schema,
boolean visitInterfaces,
boolean visitProperties) |
public static final String APPLICATION_JSON
public static final String TEXT_PLAIN
public static final int MIN_PARAMETERS_COUNT
public static <T> T resolve(org.apache.commons.jxpath.JXPathContext jxPathContext,
T obj,
Function<T,String> getRefFuc)
public static Object resolveByRef(org.apache.commons.jxpath.JXPathContext jxPathContext, String ref)
public static io.swagger.v3.parser.core.models.ParseOptions getParseOptions()
public static Set<String> getUnusedSchemaRefs(io.swagger.v3.oas.models.OpenAPI openAPI, Iterable<String> usedRefs)
public static io.swagger.v3.oas.models.media.Schema<?> getUsedSchemaInResponse(org.apache.commons.jxpath.JXPathContext jxPathContext,
io.swagger.v3.oas.models.Operation operation)
public static io.swagger.v3.oas.models.responses.ApiResponse getResponse(org.apache.commons.jxpath.JXPathContext jxPathContext,
io.swagger.v3.oas.models.responses.ApiResponses apiResponses)
public static MediaTypeInfo getMediaType(io.swagger.v3.oas.models.media.Content content)
public static Map<String,Integer> getAllUsedSchemaRefs(io.swagger.v3.oas.models.Paths paths, org.apache.commons.jxpath.JXPathContext jxPathContext)
public static Map<String,Map<String,Integer>> collectPathsWithParams(io.swagger.v3.oas.models.Paths paths, org.apache.commons.jxpath.JXPathContext jxPathContext)
public static Map<org.apache.commons.lang3.tuple.Pair<String,io.swagger.v3.oas.models.PathItem.HttpMethod>,Set<String>> getAllUsedRefResponses(io.swagger.v3.oas.models.Paths paths, org.apache.commons.jxpath.JXPathContext jxPathContext)
public static Set<String> visitSchema(org.apache.commons.jxpath.JXPathContext jxPathContext, io.swagger.v3.oas.models.media.Schema<?> schema, boolean visitInterfaces, boolean visitProperties)
public static Map<String,io.swagger.v3.oas.models.media.Schema> getSchemas(io.swagger.v3.oas.models.OpenAPI openAPI)
public static Map<String,io.swagger.v3.oas.models.media.Schema> getAllFields(org.apache.commons.jxpath.JXPathContext jxPathContext, io.swagger.v3.oas.models.media.ComposedSchema cs)
public static Map<String,Set<String>> getRefsInProperties(io.swagger.v3.oas.models.OpenAPI openAPI, org.apache.commons.jxpath.JXPathContext jxPathContext)
public static List<io.swagger.v3.oas.models.media.Schema> getInterfaces(io.swagger.v3.oas.models.media.ComposedSchema composed)
public static List<InputParameter> extractParameters(org.apache.commons.jxpath.JXPathContext jxPathContext, Set<String> refsToExpand, io.swagger.v3.oas.models.PathItem pathItem, Map.Entry<io.swagger.v3.oas.models.PathItem.HttpMethod,io.swagger.v3.oas.models.Operation> operationEntry)
public static ParameterModel extractParameter(Map.Entry<String,io.swagger.v3.oas.models.media.Schema> property, org.apache.commons.jxpath.JXPathContext jxPathContext)
Copyright © 2004–2021 OpenL Tablets. All rights reserved.