Class ServerVariableWriter
java.lang.Object
io.smallrye.openapi.runtime.io.servervariable.ServerVariableWriter
Writing the ServerVariable to json
- Author:
- Phillip Kruger (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
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
-