bagit-profiles / bagit-profiles-validator

A simple Python module for validating BagIt Profiles.
The Unlicense
12 stars 6 forks source link

Set defaults for Serialization and Allow-Fetch.txt if not explicitly provided #15

Closed kba closed 5 years ago

kba commented 5 years ago

Profiles that omit Serialization or Allow-Fetch.txt currently fail with a KeyError even though they have default values defined in the spec. These default values are now set in validate_bagit_profile.

Also, fail early if no BagIt-Profile-Info dict is present.