Class ParameterWriter
java.lang.Object
io.smallrye.openapi.runtime.io.parameter.ParameterWriter
Writing Parameter to json
- Author:
- Phillip Kruger (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidwriteParameterList(com.fasterxml.jackson.databind.node.ObjectNode parent, List<org.eclipse.microprofile.openapi.models.parameters.Parameter> models) Writes a list ofParameterto the JSON tree.static voidwriteParameters(com.fasterxml.jackson.databind.node.ObjectNode parent, Map<String, org.eclipse.microprofile.openapi.models.parameters.Parameter> parameters) Writes a map ofParameterto the JSON tree.
-
Method Details
-
writeParameters
public static void writeParameters(com.fasterxml.jackson.databind.node.ObjectNode parent, Map<String, org.eclipse.microprofile.openapi.models.parameters.Parameter> parameters) Writes a map ofParameterto the JSON tree.- Parameters:
parent- the parent json nodeparameters- map of Parameter models
-
writeParameterList
public static void writeParameterList(com.fasterxml.jackson.databind.node.ObjectNode parent, List<org.eclipse.microprofile.openapi.models.parameters.Parameter> models) Writes a list ofParameterto the JSON tree.- Parameters:
parent- the parent json nodemodels- list of Parameter models
-