Class EncodingReader


  • public class EncodingReader
    extends Object
    Reading the Encoding object annotation and json
    Author:
    Phillip Kruger (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
    See Also:
    encodingObject
    • Method Detail

      • readEncodings

        public static Map<String,​org.eclipse.microprofile.openapi.models.media.Encoding> readEncodings​(AnnotationScannerContext context,
                                                                                                             org.jboss.jandex.AnnotationValue annotationValue)
        Reads an array of Encoding annotations as a Map.
        Parameters:
        context - the scanning context
        annotationValue - Map of @Encoding annotations
        Returns:
        Map of Encoding models
      • readEncodings

        public static Map<String,​org.eclipse.microprofile.openapi.models.media.Encoding> readEncodings​(com.fasterxml.jackson.databind.JsonNode node)
        Reads a map of Encoding OpenAPI nodes.
        Parameters:
        node - the json node
        Returns:
        Map of Encoding models