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:
- schemaObject
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.eclipse.microprofile.openapi.models.media.SchemareadSchema(com.fasterxml.jackson.databind.JsonNode node)Reads aSchemaOpenAPI node.static Optional<Map<String,org.eclipse.microprofile.openapi.models.media.Schema>>readSchemas(com.fasterxml.jackson.databind.JsonNode node)Reads theSchemaOpenAPI nodes.static Map<String,org.eclipse.microprofile.openapi.models.media.Schema>readSchemas(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue)Reads a map of Schema annotations.
-
-
-
Method Detail
-
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
-
-