Class OpenApiSerializer

java.lang.Object
io.smallrye.openapi.runtime.io.OpenApiSerializer

@Deprecated public class OpenApiSerializer extends Object
Deprecated.
use the SmallRyeOpenAPI builder API instead. This class may be moved, have reduced visibility, or be removed in a future release.
Class used to serialize an OpenAPI
Author:
eric.wittmann@gmail.com
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    serialize(org.eclipse.microprofile.openapi.models.OpenAPI openApi, com.fasterxml.jackson.databind.ObjectMapper objectMapper, Format format)
    Deprecated.
    Serializes the given OpenAPI object into either JSON or YAML and returns it as a string.
    static String
    serialize(org.eclipse.microprofile.openapi.models.OpenAPI openApi, Format format)
    Deprecated.
    Serializes the given OpenAPI object into either JSON or YAML and returns it as a string.

    Methods inherited from class java.lang.Object

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

    • serialize

      public static String serialize(org.eclipse.microprofile.openapi.models.OpenAPI openApi, Format format) throws IOException
      Deprecated.
      Serializes the given OpenAPI object into either JSON or YAML and returns it as a string.
      Parameters:
      openApi - the OpenAPI object
      format - the serialization format
      Returns:
      OpenAPI object as a String
      Throws:
      IOException - Errors in processing the JSON
    • serialize

      public static String serialize(org.eclipse.microprofile.openapi.models.OpenAPI openApi, com.fasterxml.jackson.databind.ObjectMapper objectMapper, Format format) throws IOException
      Deprecated.
      Serializes the given OpenAPI object into either JSON or YAML and returns it as a string.
      Parameters:
      openApi - the OpenAPI object
      objectMapper - the ObjectMapper to use
      format - the serialization format
      Returns:
      OpenAPI object as a String
      Throws:
      IOException - Errors in processing the JSON