Class ServerWriter

    • Method Detail

      • writeServers

        public static void writeServers​(com.fasterxml.jackson.databind.node.ObjectNode node,
                                        List<org.eclipse.microprofile.openapi.models.servers.Server> servers)
        Writes the Server model array to the JSON tree.
        Parameters:
        node - the json node
        servers - list of Server models
      • writeServer

        public static void writeServer​(com.fasterxml.jackson.databind.node.ObjectNode parent,
                                       org.eclipse.microprofile.openapi.models.servers.Server model)
        Writes a Server model to the given JSON node.
        Parameters:
        parent - parent json node
        model - Server model