def add_descriptive_metadata(schema, mapper):
    """Add "title" and "description" metadata to `schema` if found on
    `mapper`.
    """
    for keyword in ('title', 'description'):
        if keyword not in schema:
            value = getattr(mapper, keyword, None)
            if value is not None:
                schema[keyword] = value
    return schema
