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~ reject

Replaces a text value with an empty string.

Nowak → empty

L2.string.exceeds_maxlengthreject

Makes a text value longer than the declared maximum.

Nowak → Nowakkkkkk

L2.type.string_in_numericreject

Puts text where the schema declares a number.

1250 → n/a

Value meaning L3

L3.checksum.off_by_onereject

Changes one digit so the format stays valid and the check digit no longer matches.

1234563218 → 1234563219

L3.checksum.transposed_digitsreject

Swaps two adjacent digits, which is the most common human typing mistake.

1234563218 → 1234653218

L3.range.unassigned~ reject

Uses 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~ reject

Leaves 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~ reject

Leaves a valid national identifier that encodes a different gender than the gender field beside it.

85011412345 → 85011412352

Valid but unusual values REV

REV.name.apostropheaccept

Supplies a surname containing an apostrophe.

Brien → O'Brien

REV.name.cjkaccept

Supplies a name written in Chinese, Japanese or Korean characters.

Sato → 佐藤

REV.name.diacriticsaccept

Supplies a name with diacritical marks.

Lukasz → Łukasz

REV.name.null_surnameaccept

Supplies the surname Null, which is a real surname.

Nowak → Null

Unicode characters UNI

UNI.case.turkish_dotless_i~ accept

Swaps 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~ accept

Places a single emoji inside a text value.

Maria → Maria 🙂

UNI.emoji.zwj_sequence~ accept

Supplies one visible character built from several code points joined by zero width joiners.

Maria → Maria 👩‍👩‍👧‍👦

UNI.normalization.nfc_vs_nfdaccept

Supplies the same text in a different Unicode normalisation form.

Żółć → Z\u0307o\u0301łc\u0301

UNI.normalization.non_idempotent~ reject

Supplies a value for which normalising twice differs from normalising once.

bigbird → ᴮᴵᴳᴮᴵᴿᴰ

UNI.zero_width.space~ reject

Inserts 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.