What it breaks
Damage comes in groups. The window shows the group’s name, and --layers on the command line or layers: in a recipe takes its code.
Each kind of damage below is one this version carries out. The example is the one the catalog keeps beside it and holds to what the program really does. The badge beside each one is what an application should do with the damaged value, and the manifest writes the same answer for every value it changed.
~ marks an answer that depends on the rules of your own application. Whether an emoji belongs in a city name is your call. qadg verify reports a disagreement on one of those and does not fail on it.
Field format L2
L2.string.empty~ rejectReplaces a text value with an empty string.
Nowak → empty
L2.string.exceeds_maxlengthrejectMakes a text value longer than the declared maximum.
Nowak → Nowakkkkkk
L2.type.string_in_numericrejectPuts text where the schema declares a number.
1250 → n/a
Value meaning L3
L3.checksum.off_by_onerejectChanges one digit so the format stays valid and the check digit no longer matches.
1234563218 → 1234563219
L3.checksum.transposed_digitsrejectSwaps two adjacent digits, which is the most common human typing mistake.
1234563218 → 1234653218
L3.range.unassigned~ rejectUses an identifier from a range the issuing authority does not assign.
666-12-3456 → 000-12-3456
Rules between fields L4
L4.coherence.national_id_vs_birthdate~ rejectLeaves a valid national identifier that encodes a different birth date than the birth date field beside it.
08282298762 → 13282298766
L4.coherence.national_id_vs_gender~ rejectLeaves a valid national identifier that encodes a different gender than the gender field beside it.
85011412345 → 85011412352
Valid but unusual values REV
REV.name.apostropheacceptSupplies a surname containing an apostrophe.
Brien → O'Brien
REV.name.cjkacceptSupplies a name written in Chinese, Japanese or Korean characters.
Sato → 佐藤
REV.name.diacriticsacceptSupplies a name with diacritical marks.
Lukasz → Łukasz
REV.name.null_surnameacceptSupplies the surname Null, which is a real surname.
Nowak → Null
Unicode characters UNI
UNI.case.turkish_dotless_i~ acceptSwaps each i for the Turkish dotless ı and each I for the dotted İ, which a change of case can quietly turn into a plain i or I.
Irina → İrına
UNI.emoji.basic~ acceptPlaces a single emoji inside a text value.
Maria → Maria 🙂
UNI.emoji.zwj_sequence~ acceptSupplies one visible character built from several code points joined by zero width joiners.
Maria → Maria 👩👩👧👦
UNI.normalization.nfc_vs_nfdacceptSupplies the same text in a different Unicode normalisation form.
Żółć → Z\u0307o\u0301łc\u0301
UNI.normalization.non_idempotent~ rejectSupplies a value for which normalising twice differs from normalising once.
bigbird → ᴮᴵᴳᴮᴵᴿᴰ
UNI.zero_width.space~ rejectInserts a zero width space, which is invisible and still changes the value.
maria@example.test → maria@exa\u200bmple.test
Choosing what to damage
On the command line, qadg corrupt --layers L2,L3 takes the codes, and --rows sets the share of rows to damage, 5% unless you say otherwise. In a recipe, policy: takes the same codes in layers:. In the window, tick the groups by name.
Damage that does not fit your data is listed in the manifest too, with the reason, so a quiet run never looks like a clean one.