Class SchemaReader

java.lang.Object
io.smallrye.openapi.runtime.io.schema.SchemaReader

public class SchemaReader extends Object
Reading the Schema annotation
Author:
Phillip Kruger (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
See Also:
  • Method Details

    • readSchemas

      public static Map<String,org.eclipse.microprofile.openapi.models.media.Schema> readSchemas(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue)
      Reads a map of Schema annotations.
      Parameters:
      context - the scanner context
      annotationValue - map of @Schema annotations
      Returns:
      Map of Schema models
    • readSchema

      public static org.eclipse.microprofile.openapi.models.media.Schema readSchema(com.fasterxml.jackson.databind.JsonNode node)
      Reads a Schema OpenAPI node.
      Parameters:
      node - json node
      Returns:
      Schema model
    • readSchemas

      public static Optional<Map<String,org.eclipse.microprofile.openapi.models.media.Schema>> readSchemas(com.fasterxml.jackson.databind.JsonNode node)
      Reads the Schema OpenAPI nodes.
      Parameters:
      node - map of schema json nodes
      Returns:
      Map of Schema model