forked from loafle/openapi-generator-original
571aefa3da
Uses os.CreateTemp to create temp directory. Uses io.Copy to avoid reading file into memory.