Class ServerVariableWriter

java.lang.Object
io.smallrye.openapi.runtime.io.servervariable.ServerVariableWriter

public class ServerVariableWriter extends Object
Writing the ServerVariable 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
    writeServerVariable(com.fasterxml.jackson.databind.node.ObjectNode parent, org.eclipse.microprofile.openapi.models.servers.ServerVariable model, String variableName)
    Writes a ServerVariable to the JSON tree.
    static void
    writeServerVariables(com.fasterxml.jackson.databind.node.ObjectNode serverNode, Map<String,org.eclipse.microprofile.openapi.models.servers.ServerVariable> variables)
    Writes the ServerVariable model to the JSON tree.

    Methods inherited from class java.lang.Object

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

    • writeServerVariables

      public static void writeServerVariables(com.fasterxml.jackson.databind.node.ObjectNode serverNode, Map<String,org.eclipse.microprofile.openapi.models.servers.ServerVariable> variables)
      Writes the ServerVariable model to the JSON tree.
      Parameters:
      serverNode - the json node
      variables - map of ServerVariable models
    • writeServerVariable

      public static void writeServerVariable(com.fasterxml.jackson.databind.node.ObjectNode parent, org.eclipse.microprofile.openapi.models.servers.ServerVariable model, String variableName)
      Writes a ServerVariable to the JSON tree.
      Parameters:
      parent - the parent json node
      model - the ServerVariable model
      variableName - the node name