Issue #2270815 by vijaycs85, Gábor Hojtsy, nvinayvinay: Make schema testing code available as generic API.