Class AnnotationScannerExtension.Default

java.lang.Object
io.smallrye.openapi.runtime.scanner.AnnotationScannerExtension.Default
All Implemented Interfaces:
AnnotationScannerExtension
Enclosing interface:
AnnotationScannerExtension

public static class AnnotationScannerExtension.Default extends Object implements AnnotationScannerExtension
  • Method Details

    • parseValue

      public Object parseValue(String value)
      Description copied from interface: AnnotationScannerExtension
      Parse a string value as an Object. By default, try to parse the value from JSON The value may be: - JSON object - starts with '{' - JSON array - starts with '[' - number - boolean - string
      Specified by:
      parseValue in interface AnnotationScannerExtension
      Parameters:
      value - the string value
      Returns:
      the parsed value as Object
    • parseSchema

      public org.eclipse.microprofile.openapi.models.media.Schema parseSchema(String jsonSchema)
      Description copied from interface: AnnotationScannerExtension
      Parse a string value as a Schema
      Specified by:
      parseSchema in interface AnnotationScannerExtension
      Parameters:
      jsonSchema - the string value of the schema, in JSON format
      Returns:
      the parsed value as Schema