collectionspace / collectionspace-mapper

MIT License
0 stars 0 forks source link

merge any default data into datahash pre-validation or prep #98

Closed kspurgin closed 3 years ago

kspurgin commented 3 years ago

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.