Class ServerWriter

java.lang.Object
io.smallrye.openapi.runtime.io.server.ServerWriter

public class ServerWriter extends Object
Writing the Server to json
Author:
Phillip Kruger (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    writeServer(com.fasterxml.jackson.databind.node.ObjectNode parent, org.eclipse.microprofile.openapi.models.servers.Server model)
    Writes a Server model to the given JSON node.
    static void
    writeServers(com.fasterxml.jackson.databind.node.ObjectNode node, List<org.eclipse.microprofile.openapi.models.servers.Server> servers)
    Writes the Server model array to the JSON tree.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • writeServers

      public static void writeServers(com.fasterxml.jackson.databind.node.ObjectNode node, List<org.eclipse.microprofile.openapi.models.servers.Server> servers)
      Writes the Server model array to the JSON tree.
      Parameters:
      node - the json node
      servers - list of Server models
    • writeServer

      public static void writeServer(com.fasterxml.jackson.databind.node.ObjectNode parent, org.eclipse.microprofile.openapi.models.servers.Server model)
      Writes a Server model to the given JSON node.
      Parameters:
      parent - parent json node
      model - Server model