Class 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 Detail

      • SchemaPropertyDeprecatingConverter

        public SchemaPropertyDeprecatingConverter()
    • 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:
        resolve in interface io.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