Class RequestBodyWriter

java.lang.Object
io.smallrye.openapi.runtime.io.requestbody.RequestBodyWriter

public class RequestBodyWriter extends Object
Writing the RequestBody 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
    writeRequestBodies(com.fasterxml.jackson.databind.node.ObjectNode parent, Map<String,org.eclipse.microprofile.openapi.models.parameters.RequestBody> requestBodies)
    Writes a map of RequestBody to the JSON tree.
    static void
    writeRequestBody(com.fasterxml.jackson.databind.node.ObjectNode parent, org.eclipse.microprofile.openapi.models.parameters.RequestBody model)
    Writes a RequestBody to the JSON tree.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • writeRequestBodies

      public static void writeRequestBodies(com.fasterxml.jackson.databind.node.ObjectNode parent, Map<String,org.eclipse.microprofile.openapi.models.parameters.RequestBody> requestBodies)
      Writes a map of RequestBody to the JSON tree.
      Parameters:
      parent - the parent json node
      requestBodies - map of RequestBody models
    • writeRequestBody

      public static void writeRequestBody(com.fasterxml.jackson.databind.node.ObjectNode parent, org.eclipse.microprofile.openapi.models.parameters.RequestBody model)
      Writes a RequestBody to the JSON tree.
      Parameters:
      parent - the parent json node
      model - RequestBody model