Package io.swagger.v3.core.converter
Interface ModelConverterContext
-
- All Known Implementing Classes:
ModelConverterContextImpl
public interface ModelConverterContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddefineModel(String name, Schema model)needs to be called whenever a Model is defined which can be referenced from another Model or PropertyvoiddefineModel(String name, Schema model, AnnotatedType type, String prevName)needs to be called whenever a Schema is defined which can be referenced from another Model or PropertyvoiddefineModel(String name, Schema model, Type type, String prevName)needs to be called whenever a Schema is defined which can be referenced from another Model or PropertyIterator<ModelConverter>getConverters()Map<String,Schema>getDefinedModels()Schemaresolve(AnnotatedType type)
-
-
-
Method Detail
-
defineModel
void defineModel(String name, Schema model)
needs to be called whenever a Model is defined which can be referenced from another Model or Property- Parameters:
name- the name of the modelmodel- the Model
-
defineModel
void defineModel(String name, Schema model, AnnotatedType type, String prevName)
needs to be called whenever a Schema is defined which can be referenced from another Model or Property- Parameters:
name- the name of the modelmodel- the Modeltype- the AnnotatedTypeprevName- the (optional) previous name
-
defineModel
void defineModel(String name, Schema model, Type type, String prevName)
needs to be called whenever a Schema is defined which can be referenced from another Model or Property- Parameters:
name- the name of the modelmodel- the Modeltype- the TypeprevName- the (optional) previous name
-
resolve
Schema resolve(AnnotatedType type)
- Parameters:
type- The Schema- Returns:
- a Model representation of the Class. Any referenced models will be defined already.
-
getConverters
Iterator<ModelConverter> getConverters()
- Returns:
- an Iterator of ModelConverters. This iterator is not reused
-
-