Class Serializer

java.lang.Object
io.helidon.openapi.Serializer

public class Serializer extends Object
Expresses an existing OpenAPI instance as an OpenAPI document. This implementation uses SnakeYAML to write OpenAPI documents from the SmallRye MP OpenAPI model interfaces and classes while suppressing tags that would indicate the SmallRye classes -- we don't want to suggest that the output can only be read into the SmallRye implementation.
  • Method Details

    • serialize

      public static void serialize(Map<Class<?>,ExpandedTypeDescription> types, Map<Class<?>,ExpandedTypeDescription> implsToTypes, OpenAPI openAPI, io.smallrye.openapi.runtime.io.Format fmt, Writer writer)
      Serialize using the selected format.
      Parameters:
      types - types
      implsToTypes - implementations to types
      openAPI - Open API document to serialize
      fmt - format to use
      writer - writer to serialize to