Class ContentReader
- java.lang.Object
-
- io.smallrye.openapi.runtime.io.content.ContentReader
-
public class ContentReader extends Object
Reading the Content object annotation and json- Author:
- Phillip Kruger ([email protected]), Eric Wittmann ([email protected])
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.eclipse.microprofile.openapi.models.media.Content
readContent(com.fasterxml.jackson.databind.JsonNode node)
Reads aContent
OpenAPI node.static org.eclipse.microprofile.openapi.models.media.Content
readContent(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue, ContentDirection direction)
Reads a single Content annotation into a model.
-
-
-
Method Detail
-
readContent
public static org.eclipse.microprofile.openapi.models.media.Content readContent(AnnotationScannerContext context, org.jboss.jandex.AnnotationValue annotationValue, ContentDirection direction)
Reads a single Content annotation into a model. The value in this case is an array of Content annotations.- Parameters:
context
- the scanning contextannotationValue
- the @Content annotationdirection
- the content direction- Returns:
- Content model
-
readContent
public static org.eclipse.microprofile.openapi.models.media.Content readContent(com.fasterxml.jackson.databind.JsonNode node)
Reads aContent
OpenAPI node.- Parameters:
node
- the json node- Returns:
- Content model
-
-