public interface ModelConverterContext
| Modifier and Type | Method and Description |
|---|---|
void |
defineModel(String name,
io.swagger.v3.oas.models.media.Schema model)
needs to be called whenever a Model is defined which can be referenced from another
Model or Property
|
void |
defineModel(String name,
io.swagger.v3.oas.models.media.Schema model,
AnnotatedType type,
String prevName)
needs to be called whenever a Schema is defined which can be referenced from another
Model or Property
|
void |
defineModel(String name,
io.swagger.v3.oas.models.media.Schema model,
Type type,
String prevName)
needs to be called whenever a Schema is defined which can be referenced from another
Model or Property
|
Iterator<ModelConverter> |
getConverters() |
Map<String,io.swagger.v3.oas.models.media.Schema> |
getDefinedModels() |
io.swagger.v3.oas.models.media.Schema |
resolve(AnnotatedType type) |
void defineModel(String name, io.swagger.v3.oas.models.media.Schema model)
name - the name of the modelmodel - the Modelvoid defineModel(String name, io.swagger.v3.oas.models.media.Schema model, AnnotatedType type, String prevName)
name - the name of the modelmodel - the Modeltype - the AnnotatedTypeprevName - the (optional) previous namevoid defineModel(String name, io.swagger.v3.oas.models.media.Schema model, Type type, String prevName)
name - the name of the modelmodel - the Modeltype - the TypeprevName - the (optional) previous nameio.swagger.v3.oas.models.media.Schema resolve(AnnotatedType type)
type - The SchemaIterator<ModelConverter> getConverters()
Copyright © 2019. All rights reserved.