public class SchemaPropertyDeprecatingConverter extends Object implements io.swagger.v3.core.converter.ModelConverter
Constructor and Description |
---|
SchemaPropertyDeprecatingConverter() |
Modifier and Type | Method and Description |
---|---|
static void |
addDeprecatedType(Class<? extends Annotation> cls)
Add deprecated type.
|
static boolean |
containsDeprecatedAnnotation(Annotation[] annotations)
Contains deprecated annotation boolean.
|
static boolean |
isDeprecated(AnnotatedElement annotatedElement)
Is deprecated boolean.
|
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) |
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)
resolve
in interface io.swagger.v3.core.converter.ModelConverter
public static boolean containsDeprecatedAnnotation(Annotation[] annotations)
annotations
- the annotationspublic static void addDeprecatedType(Class<? extends Annotation> cls)
cls
- the clspublic static boolean isDeprecated(AnnotatedElement annotatedElement)
annotatedElement
- the annotated elementCopyright © 2021. All rights reserved.