Class ContentReader

    • 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