public final class ModelUtils
extends java.lang.Object
| Constructor and Description |
|---|
ModelUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Type |
getType(io.swagger.models.Model model,
java.util.Map<java.lang.String,io.swagger.models.Model> definitions,
DocumentResolver definitionDocumentResolver)
Retrieves the type of a model, or otherwise null
|
static Type |
resolveRefType(Type type)
Recursively resolve referenced type if
type is of type RefType |
public static Type resolveRefType(Type type)
type is of type RefTypetype - type to resolvepublic static Type getType(io.swagger.models.Model model, java.util.Map<java.lang.String,io.swagger.models.Model> definitions, DocumentResolver definitionDocumentResolver)
model - the modeldefinitionDocumentResolver - the definition document resolver