bagit-profiles / bagit-profiles-validator

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

updates tag parameter validation logic #4

Closed helrond closed 7 years ago

helrond commented 7 years ago

As written, the validate_bag_info() function would only check a tag for controlled values if that tag was also required. Since the BagIt Profile spec does not seem to indicate that only required tags can have controlled value lists (unless I'm misreading something, which is totally possible) it would seem to make sense to check all tags for the value parameter.

ruebot commented 7 years ago

@helrond thanks! (Sorry about the delay. Tied up with IslandoraCon last week.)

ruebot commented 7 years ago

I'll get this up to PyPi too.