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 ([email protected]), Eric Wittmann ([email protected])
- See Also:
- serverVariableObject
-
-
Method Summary
All Methods Static Methods Concrete Methods 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 aServerVariable
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 theServerVariable
model 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 theServerVariable
model 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 aServerVariable
to the JSON tree.- Parameters:
parent
- the parent json nodemodel
- the ServerVariable modelvariableName
- the node name
-
-