Class 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:
    parameter-object
    • Method Detail

      • 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