public class OpenApiSerializer extends Object
| Modifier and Type | Method and 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.
|
public static final String serialize(org.eclipse.microprofile.openapi.models.OpenAPI openApi, Format format) throws IOException
openApi - the OpenAPI objectformat - the serialization formatIOException - Errors in processing the JSONCopyright © 2018–2021. All rights reserved.