Package org.springdoc.core.converters
Class SchemaPropertyDeprecatingConverter
- java.lang.Object
-
- org.springdoc.core.converters.SchemaPropertyDeprecatingConverter
-
- All Implemented Interfaces:
io.swagger.v3.core.converter.ModelConverter
public class SchemaPropertyDeprecatingConverter extends Object implements io.swagger.v3.core.converter.ModelConverter
The type Schema property deprecating converter.- Author:
- bnasslahsen
-
-
Constructor Summary
Constructors Constructor Description SchemaPropertyDeprecatingConverter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddDeprecatedType(Class<? extends Annotation> cls)Add deprecated type.static booleancontainsDeprecatedAnnotation(Annotation[] annotations)Contains deprecated annotation boolean.static booleanisDeprecated(AnnotatedElement annotatedElement)Is deprecated boolean.io.swagger.v3.oas.models.media.Schemaresolve(io.swagger.v3.core.converter.AnnotatedType type, io.swagger.v3.core.converter.ModelConverterContext context, Iterator<io.swagger.v3.core.converter.ModelConverter> chain)
-
-
-
Method Detail
-
resolve
public io.swagger.v3.oas.models.media.Schema resolve(io.swagger.v3.core.converter.AnnotatedType type, io.swagger.v3.core.converter.ModelConverterContext context, Iterator<io.swagger.v3.core.converter.ModelConverter> chain)- Specified by:
resolvein interfaceio.swagger.v3.core.converter.ModelConverter
-
containsDeprecatedAnnotation
public static boolean containsDeprecatedAnnotation(Annotation[] annotations)
Contains deprecated annotation boolean.- Parameters:
annotations- the annotations- Returns:
- the boolean
-
addDeprecatedType
public static void addDeprecatedType(Class<? extends Annotation> cls)
Add deprecated type.- Parameters:
cls- the cls
-
isDeprecated
public static boolean isDeprecated(AnnotatedElement annotatedElement)
Is deprecated boolean.- Parameters:
annotatedElement- the annotated element- Returns:
- the boolean
-
-