Revert "Revert "Making fragment schema validation works.""

This reverts commit 3e5c752fa5ae5fde85d2591221e9bb89d3a2e385.