Class SchemaReader
- java.lang.Object
-
- io.smallrye.openapi.runtime.io.schema.SchemaReader
-
public class SchemaReader extends Object
Reading the Schema annotation- Author:
- Phillip Kruger ([email protected]), Eric Wittmann ([email protected])
- See Also:
- schemaObject
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.eclipse.microprofile.openapi.models.media.Schema
readSchema(com.fasterxml.jackson.databind.JsonNode node)
Reads aSchema
OpenAPI node.static Optional<Map<String,org.eclipse.microprofile.openapi.models.media.Schema>>
readSchemas(com.fasterxml.jackson.databind.JsonNode node)
Reads theSchema
OpenAPI 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 aSchema
OpenAPI node.- Parameters:
node
- json node- Returns:
- Schema model
-
-