public final class SwaggerHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static io.swagger.models.ModelImpl |
dereference(io.swagger.models.RefModel reference,
io.swagger.models.Swagger swagger) |
static io.swagger.models.ModelImpl |
dereference(io.swagger.models.properties.RefProperty property,
io.swagger.models.Swagger swagger) |
static String |
minimalSwaggerUsedByComponent(io.swagger.models.Swagger swagger)
Removes all properties from the given Swagger document that are not
used by the REST Swagger Camel component in order to minimize the amount
of data stored in the configured properties.
|
static OperationDescription |
operationDescriptionOf(io.swagger.models.Swagger swagger,
io.swagger.models.Operation operation,
BiFunction<String,String,String> consumer) |
static SwaggerModelInfo |
parse(String specification,
APIValidationContext validationContext) |
static String |
sanitizeTag(String tag)
Makes sure that the tag used as a key in a JSON object is a valid
key determined by io.syndesis.server.jsondb.impl.JsonRecordSupport::validateKey.
|
static Stream<String> |
sanitizeTags(List<String> list) |
public static io.swagger.models.ModelImpl dereference(io.swagger.models.RefModel reference,
io.swagger.models.Swagger swagger)
public static io.swagger.models.ModelImpl dereference(io.swagger.models.properties.RefProperty property,
io.swagger.models.Swagger swagger)
public static String sanitizeTag(String tag)
public static String minimalSwaggerUsedByComponent(io.swagger.models.Swagger swagger)
public static OperationDescription operationDescriptionOf(io.swagger.models.Swagger swagger, io.swagger.models.Operation operation, BiFunction<String,String,String> consumer)
public static SwaggerModelInfo parse(String specification, APIValidationContext validationContext)
Copyright © 2016–2019 Red Hat. All rights reserved.