code: function cleanSpecForApiGateway(spec) {
    // @TODO: see if it is still useful when importing with the SDK
    // JSON schema doesn't allow to have example as property, but swagger model does
    // https://github.com/awslabs/aws-apigateway-importer/issues/177
    delete spec['x-myrmex'];
    _.forEach(spec.definitions, definition => {
      delete definition.example;
      _.forEach(definition.properties, property => {
        delete property.example;
      });
    });
    return spec;
  }
docs: Clean an Swagger/OpenAPI specification to remove parts incompatible with the ApiGateway import
  @param {Object} spec - an Swagger/OpenAPI specification
  @returns {Object} - the cleaned Swagger/OpenAPI specification