Generating JSON schema for request bodies