How does the text determine a qualifying defect?

Khiyar al-Ayb: Defects, Remedies and Waiver