Skip to content

Merge default data in before any validation or processing

Compare
Choose a tag to compare
@kspurgin kspurgin released this 02 Mar 23:25
· 488 commits to main since this release
20f0ed7

For special recordtypes, required fields are provided in defaults hardcoded in the DataHandler. Calling handler.validate on the raw data resulted in errors about missing required fields. Merging any default data in as soon as the data is first prepped into a Response ensures this doesn't happen any more.

See #98