Class 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 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 context
        annotationValue - the @Content annotation
        direction - the content direction
        Returns:
        Content model
      • readContent

        public static org.eclipse.microprofile.openapi.models.media.Content readContent​(com.fasterxml.jackson.databind.JsonNode node)
        Reads a Content OpenAPI node.
        Parameters:
        node - the json node
        Returns:
        Content model