fm = jams.FileMetadata(duration=None)
fm.validate()
# passes
even though this violates the schema. This is due to this line
which is using the global schema for validation. Instead, it should be using self.__schema__.
I'm not sure how that snuck in, but it's an easy fix.
Title says it all: a good example is as follows:
even though this violates the schema. This is due to this line which is using the global schema for validation. Instead, it should be using
self.__schema__
.I'm not sure how that snuck in, but it's an easy fix.