lib/types.js
function objectId_jsonSchema(name) {

  var result = simpleType_jsonSchema.call(this, name);

  result.type = 'string';
  result.pattern = '^[0-9a-fA-F]{24}$';

  return result;
}
function objectId_jsonSchema(name) {

  var result = simpleType_jsonSchema.call(this, name);

  result.type = 'string';
  result.pattern = '^[0-9a-fA-F]{24}$';

  return result;
}
function objectId_jsonSchema ( name ) { var result = simpleType_jsonSchema . call ( this , name ) ; result . type = 'string' ; result . pattern = '^[0-9a-fA-F]{24}$' ; return result ; }
objectId_jsonSchema - returns the jsonSchema for ObjectId parameters

@memberof mongoose.Schema.Types.ObjectId

@param  {String} name the name of parameter
@return {object}      the jsonSchema for parameter
objectId_jsonSchema - returns the jsonSchema for ObjectId parameters