This is likely because you’re passing the schema as a string or pass a null schema.
We’re not 100% done with that API yet and may improve its developer friendlyness in the future. One thing it definitely lacks is proper error handling (in the sense of meaningful error messages on miss-use).