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 Details

    • SchemaPropertyDeprecatingConverter

      public SchemaPropertyDeprecatingConverter()
  • Method Details

    • 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(Method method)
      Is deprecated boolean.
      Parameters:
      method - the annotated element
      Returns:
      the boolean
    • 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:
      resolve in interface io.swagger.v3.core.converter.ModelConverter