Class ExampleWriter

java.lang.Object
io.smallrye.openapi.runtime.io.example.ExampleWriter

public class ExampleWriter extends Object
Writing the Example to json
Author:
Phillip Kruger (phillip.kruger@redhat.com), Eric Wittmann (eric.wittmann@gmail.com)
See Also:
  • Method Details

    • writeExamples

      public static void writeExamples(com.fasterxml.jackson.databind.node.ObjectNode parent, Map<String,org.eclipse.microprofile.openapi.models.examples.Example> examples)
      Writes a map of Example to the JSON tree.
      Parameters:
      parent - the parent json node
      examples - map of Example models