ucoProject / UCO-Utility-Pre-0.7.0-Validator

Utility for validation of UCO 0.4.0, UCO 0.5.0, UCO 0.6.0 & UCO 0.7.0 content
Other
2 stars 4 forks source link

Address TypeError with XSD namespace #13

Closed ajnelson-nist closed 3 years ago

ajnelson-nist commented 3 years ago

I encountered this error at the end of a decently long stack trace:

TypeError: startswith first arg must be str or a tuple of str, not DefinedNamespaceMeta

while attempting to validate this file: https://github.com/casework/CASE-Examples/blob/master/examples/illustrations/exif_data/exif_data.json

(The Make target that failed was check-0.3.0, for CASE 0.3.0 and UCO 0.5.0. These version details might be moot.)

Casting the XSD namespace variable as a string fixed the input-type error.

Signed-off-by: Alex Nelson alexander.nelson@nist.gov