Package io.smallrye.openapi.runtime.io
Class OpenApiSerializer
- java.lang.Object
-
- io.smallrye.openapi.runtime.io.OpenApiSerializer
-
public class OpenApiSerializer extends Object
Class used to serialize an OpenAPI- Author:
- [email protected]
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
serialize(org.eclipse.microprofile.openapi.models.OpenAPI openApi, Format format)
Serializes the given OpenAPI object into either JSON or YAML and returns it as a string.
-
-
-
Method Detail
-
serialize
public static final String serialize(org.eclipse.microprofile.openapi.models.OpenAPI openApi, Format format) throws IOException
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
-
-