Class ParameterWriter

java.lang.Object
io.smallrye.openapi.runtime.io.parameter.ParameterWriter

public class ParameterWriter extends Object
Writing Parameter 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
    writeParameterList(com.fasterxml.jackson.databind.node.ObjectNode parent, List<org.eclipse.microprofile.openapi.models.parameters.Parameter> models)
    Writes a list of Parameter to the JSON tree.
    static void
    writeParameters(com.fasterxml.jackson.databind.node.ObjectNode parent, Map<String,org.eclipse.microprofile.openapi.models.parameters.Parameter> parameters)
    Writes a map of Parameter to the JSON tree.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 of Parameter to the JSON tree.
      Parameters:
      parent - the parent json node
      parameters - 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 of Parameter to the JSON tree.
      Parameters:
      parent - the parent json node
      models - list of Parameter models