schema validation for assets - fixed #399