Class MediaTypeWriter

java.lang.Object
io.smallrye.openapi.runtime.io.mediatype.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:
  • Method Details

    • 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