Package io.smallrye.openapi.runtime.io
Class OpenApiSerializer
java.lang.Object
io.smallrye.openapi.runtime.io.OpenApiSerializer
Deprecated.
Class used to serialize an OpenAPI
- Author:
- eric.wittmann@gmail.com
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringserialize(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 StringDeprecated.Serializes the given OpenAPI object into either JSON or YAML and returns it as a string.
-
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 objectformat- 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 objectobjectMapper- theObjectMapperto useformat- the serialization format- Returns:
- OpenAPI object as a String
- Throws:
IOException- Errors in processing the JSON
-
SmallRyeOpenAPIbuilder API instead. This class may be moved, have reduced visibility, or be removed in a future release.