generate() from string and not solely URL

Some use cases have a JSON schema in a string, instead of a file on disk or otherwise accessible via url. This allows for generating based on that, which eliminates the need for temp files in that use case.