function generateExample(schema, options) {
  return JSON.stringify(OpenAPISampler.sample(schema, options || {}) || '', null, 2);
}
Generate string with example from provided schema
@schema {object} - Schema object as JSON and not Schema model map
@options {object} - Options object. Supported options are listed here https://github.com/Redocly/openapi-sampler#usage
@returns {string}