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:
- serverVariableObject
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidwriteServerVariable(com.fasterxml.jackson.databind.node.ObjectNode parent, org.eclipse.microprofile.openapi.models.servers.ServerVariable model, String variableName)Writes aServerVariableto the JSON tree.static voidwriteServerVariables(com.fasterxml.jackson.databind.node.ObjectNode serverNode, Map<String,org.eclipse.microprofile.openapi.models.servers.ServerVariable> variables)Writes theServerVariablemodel to the JSON tree.
-
-
-
Method Detail
-
writeServerVariables
public static void writeServerVariables(com.fasterxml.jackson.databind.node.ObjectNode serverNode, Map<String,org.eclipse.microprofile.openapi.models.servers.ServerVariable> variables)Writes theServerVariablemodel to the JSON tree.- Parameters:
serverNode- the json nodevariables- 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 aServerVariableto the JSON tree.- Parameters:
parent- the parent json nodemodel- the ServerVariable modelvariableName- the node name
-
-