Added schema validation for generating permalinks