Allow validate to work with schemas.