Class MediaTypeWriter


  • public class MediaTypeWriter
    extends Object
    Writer the Media type object to json
    Author:
    Phillip Kruger (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
    See Also:
    mediaTypeObject
    • Method Detail

      • writeMediaType

        public static void writeMediaType​(com.fasterxml.jackson.databind.node.ObjectNode parent,
                                          org.eclipse.microprofile.openapi.models.media.MediaType model,
                                          String name)
        Writes a MediaType to the JSON tree.
        Parameters:
        parent - the parent json node
        model - the MediaType model
        name - name of the node