We have a lot of validation that verifies against metadata, but we don't verify whether the metadata is correct according to the profile you want to use.
We should add a method (or methods) that allows verifying metadata against profile requirements. This way the other verification methods can stay simple and verify based on the metadata.
We should at least add this for HAIP.