Record Schema Unifier with Missing-Field Gap Report
Loading workflow…
Workflow Description
A fully local workflow: a manual trigger feeds a Code node emitting heterogeneous fictional records; a second Code node computes the union of top-level keys, infers each key's type, fills absent/undefined/null fields with typed defaults, and records filled keys per record; a Set node adds filled_count and is_complete; a final Code node aggregates one summary item with totals, defaults map, and unified records with no undefined values and no external calls.
How it works
- 1.Run the workflow manually from the Manual Trigger
- 2.A Code node emits fictional records: one with groups, one with adminGroups, one with groups:null, plus a non-object invalid case
- 3.The unify Code node computes the key union, infers types, fills gaps, and documents them in filled_fields
- 4.The Set node adds filled_count and is_complete while retaining all fields
- 5.The final Code node emits one report item with totals, per_key_defaults, and normalized records, filtering the internal stats item
Use cases
- Normalizing nested irregular API responses before binding expressions
- Detecting records with missing fields in data pipelines
- Preparing schema-consistent data for downstream n8n nodes
Requirements
- No credentials and no external calls
- n8n 2.45.5 with default Code, Set, NoOp nodes
- For real use, replace the sample emitter with an HTTP Request output using the same json.record schema
Setup and testing in n8n
- Import the JSON into n8n and click Execute Workflow
- Verify every record carries the same key union with no undefined
- Check filled_fields per record, filled_count, and that total_fields_filled=6
- Test no-valid-records: set the emitter array to [{record:null}] and verify a correct report (total=1, valid=0, invalid=1)
Service Value
Ready-made workflow template for automation delivery and service execution.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (6)
Manual Trigger
Manual Trigger
Emit Fictional Sample Records
Code
Unify Schema and Fill Gaps
Code
Tag Each Record Gap Count
Set
Build Gap Report Summary
Code
Done
No Op
Sticky: Setup
Sticky Note
Sticky: Fill Rules
Sticky Note
Sticky: Output
Sticky Note
Fresh workflows, straight to your inbox
Get newly published DROPIDEA workflows, a clear overview of what they do, and a link to explore them.
- New workflows
- Clear overviews
- Setup guides