瀏覽代碼

fix OpenAPI schema

Nicola Murino 4 年之前
父節點
當前提交
1ee843757d
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 1
      httpd/schema/openapi.yaml
  2. 1 0
      vfs/sftpfs.go

+ 1 - 1
httpd/schema/openapi.yaml

@@ -1614,7 +1614,7 @@ components:
           type: boolean
           type: boolean
           description: Concurrent reads are safe to use and disabling them will degrade performance. Some servers automatically delete files once they are downloaded. Using concurrent reads is problematic with such servers.
           description: Concurrent reads are safe to use and disabling them will degrade performance. Some servers automatically delete files once they are downloaded. Using concurrent reads is problematic with such servers.
         buffer_size:
         buffer_size:
-          type: intger
+          type: integer
           description: The size of the buffer (in MB) to use for transfers. By enabling buffering, the reads and writes, from/to the remote SFTP server, are split in multiple concurrent requests and this allows data to be transferred at a faster rate, over high latency networks, by overlapping round-trip times. With buffering enabled, resuming uploads is not supported and a file cannot be opened for both reading and writing at the same time. 0 means disabled.
           description: The size of the buffer (in MB) to use for transfers. By enabling buffering, the reads and writes, from/to the remote SFTP server, are split in multiple concurrent requests and this allows data to be transferred at a faster rate, over high latency networks, by overlapping round-trip times. With buffering enabled, resuming uploads is not supported and a file cannot be opened for both reading and writing at the same time. 0 means disabled.
     FilesystemConfig:
     FilesystemConfig:
       type: object
       type: object

+ 1 - 0
vfs/sftpfs.go

@@ -30,6 +30,7 @@ const (
 	sftpFsName = "sftpfs"
 	sftpFsName = "sftpfs"
 )
 )
 
 
+// ErrSFTPLoop defines the error to return if an SFTP loop is detected
 var ErrSFTPLoop = errors.New("SFTP loop or nested local SFTP folders detected")
 var ErrSFTPLoop = errors.New("SFTP loop or nested local SFTP folders detected")
 
 
 // SFTPFsConfig defines the configuration for SFTP based filesystem
 // SFTPFsConfig defines the configuration for SFTP based filesystem