Class PathsWriter
java.lang.Object
io.smallrye.openapi.runtime.io.paths.PathsWriter
Writing the Paths to json
- Author:
- Phillip Kruger (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidwritePathItem(com.fasterxml.jackson.databind.node.ObjectNode parent, org.eclipse.microprofile.openapi.models.PathItem model, String pathName) Writes aPathItemto the JSON tree.static voidwritePaths(com.fasterxml.jackson.databind.node.ObjectNode parent, org.eclipse.microprofile.openapi.models.Paths paths) Writes aPathsto the JSON tree.
-
Method Details
-
writePaths
public static void writePaths(com.fasterxml.jackson.databind.node.ObjectNode parent, org.eclipse.microprofile.openapi.models.Paths paths) Writes aPathsto the JSON tree.- Parameters:
parent- the parent json nodepaths- Paths model
-
writePathItem
public static void writePathItem(com.fasterxml.jackson.databind.node.ObjectNode parent, org.eclipse.microprofile.openapi.models.PathItem model, String pathName) Writes aPathItemto the JSON tree.- Parameters:
parent- parent json nodemodel- PathItem modelpathName- the node name (path)
-