Class OpenApiSerializer

    • 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 object
        format - the serialization format
        Returns:
        OpenAPI object as a String
        Throws:
        IOException - Errors in processing the JSON