Class SchemaReader
java.lang.Object
io.smallrye.openapi.runtime.io.schema.SchemaReader
Reading the Schema annotation
- Author:
- Phillip Kruger (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.eclipse.microprofile.openapi.models.media.SchemareadSchema(com.fasterxml.jackson.databind.JsonNode node) Reads aSchemaOpenAPI node.readSchemas(com.fasterxml.jackson.databind.JsonNode node) Reads theSchemaOpenAPI nodes.readSchemas(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue) Reads a map of Schema annotations.
-
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 contextannotationValue- 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 aSchemaOpenAPI 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 theSchemaOpenAPI nodes.- Parameters:
node- map of schema json nodes- Returns:
- Map of Schema model
-