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

      • 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