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 (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.eclipse.microprofile.openapi.models.media.ContentreadContent(com.fasterxml.jackson.databind.JsonNode node)Reads aContentOpenAPI node.static org.eclipse.microprofile.openapi.models.media.ContentreadContent(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 aContentOpenAPI node.- Parameters:
node- the json node- Returns:
- Content model
-
-