code: function generateParameterExample(schema) {
    const typeExamples = {
      string: () => 'string',
      string_email: () => 'user@example.com',
      'string_date-time': () => new Date().toISOString(),
      string_byte: () => 'ZXhhbXBsZQ==',
      number: () => 0,
      number_float: () => 0.0,
      number_double: () => 0.0,
      integer: () => 0,
      boolean: () => true,
      object: schema => {
        const example = {};
        const { properties } = schema;
  
        Object.keys(properties).forEach(propertyName => {
          example[propertyName] = generateParameterExample(properties[propertyName]);
        });
  
        return example;
      },
      array: schema => {
        const value = generateParameterExample(schema.items);
        if (schema.collectionFormat === 'csv') {
          return value;
        } else {
          return [value];
        }
      },
    };
  
    if (typeof schema === 'string') {
      return typeExamples[schema];
    }
  
    if (schema instanceof Object) {
      const { type, format, example, default: defaultValue } = schema;
  
      if (example) {
        return example;
      }
  
      if (defaultValue) {
        return defaultValue;
      }
  
      const factory = typeExamples[`${type}_${format}`] || typeExamples[type];
  
      if (!factory) {
        return null;
      }
  
      return factory(schema);
    }
  }
docs: Generate example value of parameter based on it's schema.
  Returns example / default value of the parameter, if any of those are defined. If not, returns value based on parameter type.
  
  @param {string|Object} schema - Swagger 2.0 parameter definition object
  (https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#parametersDefinitionsObject) or string with valid parameter type
  
  @returns {*}