fixing issues with cat I schema generation for schema validation