code: function prepareBody(endpointSchema) {
    // request
    const requestBody = endpointSchema.requestBody || {};
    const content = requestBody.content || {};
    const mimeTypes = Object.keys(content);
  
    const isAvailable = m => mimeTypes.includes(m);
    const supportedMimeType = SUPPORTED_MIME_TYPES.find(isAvailable);
  
    if (supportedMimeType === MIMETYPE_JSON) {
      const bodyParameter = content[supportedMimeType];
  
      if (bodyParameter == null) {
        return {
          mimeType: MIMETYPE_JSON,
        };
      }
  
      const example = generateParameterExample(bodyParameter.schema);
      const text = JSON.stringify(example, null, 2);
      return {
        mimeType: MIMETYPE_JSON,
        text,
      };
    }
  
    if (mimeTypes && mimeTypes.length && mimeTypes[0] !== MIMETYPE_LITERALLY_ANYTHING) {
      return {
        mimeType: mimeTypes[0] || undefined,
      };
    } else {
      return {};
    }
  }
docs: Imports insomnia request body definitions, including data mock (if available)
  
  If multiple types are available, the one for which an example can be generated will be selected first (i.e. application/json)
  
  @param {Object} endpointSchema - OpenAPI 3 endpoint schema
  
  @return {Object} insomnia request's body definition