Class PathsWriter

java.lang.Object
io.smallrye.openapi.runtime.io.paths.PathsWriter

public class PathsWriter extends Object
Writing the Paths 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
    writePathItem(com.fasterxml.jackson.databind.node.ObjectNode parent, org.eclipse.microprofile.openapi.models.PathItem model, String pathName)
    Writes a PathItem to the JSON tree.
    static void
    writePaths(com.fasterxml.jackson.databind.node.ObjectNode parent, org.eclipse.microprofile.openapi.models.Paths paths)
    Writes a Paths to the JSON tree.

    Methods inherited from class java.lang.Object

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

    • writePaths

      public static void writePaths(com.fasterxml.jackson.databind.node.ObjectNode parent, org.eclipse.microprofile.openapi.models.Paths paths)
      Writes a Paths to the JSON tree.
      Parameters:
      parent - the parent json node
      paths - Paths model
    • writePathItem

      public static void writePathItem(com.fasterxml.jackson.databind.node.ObjectNode parent, org.eclipse.microprofile.openapi.models.PathItem model, String pathName)
      Writes a PathItem to the JSON tree.
      Parameters:
      parent - parent json node
      model - PathItem model
      pathName - the node name (path)