SANJIESAN TOOLS / Import field mapping
Catch a misspelled JSON field before its value disappears
A record can contain a carefully entered value under the wrong field name. If an importer ignores that field silently, the result may look complete while losing the information. Define the unexpected-field policy and keep a small typo example beside the mapping, using data that cannot trigger a live business action.
Name the known and unknown fields
Use a mock resource with a known title field and a misspelled variant such as titel. JSON Schema’s object reference explains that extra properties are allowed by default unless constrained, and describes additionalProperties. Decide the policy appropriate to the actual contract rather than assuming every unknown field must always be discarded or rejected. Keep that decision explicit, particularly when future suppliers may add useful data that should be retained for review.
Inspect the typo without a silent repair
Compare an expected record with the typo sample and write what should happen to the unexpected key and value. If the system rejects it, inspect the error; if it preserves it for review, inspect that separate record. Do not automatically merge a similar-looking key into a known field without an agreed rule. An unfamiliar supplier field can mean something different, and an apparently helpful correction can hide a mapping error that should have been discussed.
Keep the mapping change reviewable
When accepting a new field, update the contract and its examples before a later batch uses it. Retain the original input and a short reason for any deliberate mapping. Avoid presenting the accepted record as source-verified merely because its keys now match. The useful result is visible handling of unexpected information, not a promise that one closed schema will suit all future platforms or that this article performed a supplier import.