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(Method method)
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 static boolean containsDeprecatedAnnotation(Annotation[] annotations)
annotations - the annotationspublic static void addDeprecatedType(Class<? extends Annotation> cls)
cls - the clspublic static boolean isDeprecated(Method method)
method - the annotated elementpublic 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.ModelConverterCopyright © 2024. All rights reserved.