Forráskód Böngészése

httpfs OpenAPI: added charset=utf-8 to application/json content type

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
Nicola Murino 2 éve
szülő
commit
1085f9e5ec
2 módosított fájl, 15 hozzáadás és 16 törlés
  1. 15 15
      openapi/httpfs.yaml
  2. 0 1
      openapi/openapi.yaml

+ 15 - 15
openapi/httpfs.yaml

@@ -33,7 +33,7 @@ paths:
         200:
         200:
           description: successful operation
           description: successful operation
           content:
           content:
-            application/json:
+            application/json; charset=utf-8:
               schema:
               schema:
                 $ref: '#/components/schemas/FileInfo'
                 $ref: '#/components/schemas/FileInfo'
         401:
         401:
@@ -343,7 +343,7 @@ paths:
         200:
         200:
           description: successful operation
           description: successful operation
           content:
           content:
-            application/json:
+            application/json; charset=utf-8:
               schema:
               schema:
                 type: array
                 type: array
                 items:
                 items:
@@ -377,7 +377,7 @@ paths:
         200:
         200:
           description: successful operation
           description: successful operation
           content:
           content:
-            application/json:
+            application/json; charset=utf-8:
               schema:
               schema:
                 type: object
                 type: object
                 properties:
                 properties:
@@ -417,7 +417,7 @@ paths:
         200:
         200:
           description: successful operation
           description: successful operation
           content:
           content:
-            application/json:
+            application/json; charset=utf-8:
               schema:
               schema:
                 type: object
                 type: object
                 properties:
                 properties:
@@ -452,7 +452,7 @@ paths:
         200:
         200:
           description: successful operation
           description: successful operation
           content:
           content:
-            application/json:
+            application/json; charset=utf-8:
               schema:
               schema:
                 $ref: '#/components/schemas/StatVFS'
                 $ref: '#/components/schemas/StatVFS'
         401:
         401:
@@ -472,61 +472,61 @@ components:
     OKResponse:
     OKResponse:
       description: successful operation
       description: successful operation
       content:
       content:
-        application/json:
+        application/json; charset=utf-8:
           schema:
           schema:
             $ref: '#/components/schemas/ApiResponse'
             $ref: '#/components/schemas/ApiResponse'
     BadRequest:
     BadRequest:
       description: Bad Request
       description: Bad Request
       content:
       content:
-        application/json:
+        application/json; charset=utf-8:
           schema:
           schema:
             $ref: '#/components/schemas/ApiResponse'
             $ref: '#/components/schemas/ApiResponse'
     Unauthorized:
     Unauthorized:
       description: Unauthorized
       description: Unauthorized
       content:
       content:
-        application/json:
+        application/json; charset=utf-8:
           schema:
           schema:
             $ref: '#/components/schemas/ApiResponse'
             $ref: '#/components/schemas/ApiResponse'
     Forbidden:
     Forbidden:
       description: Forbidden
       description: Forbidden
       content:
       content:
-        application/json:
+        application/json; charset=utf-8:
           schema:
           schema:
             $ref: '#/components/schemas/ApiResponse'
             $ref: '#/components/schemas/ApiResponse'
     NotFound:
     NotFound:
       description: Not Found
       description: Not Found
       content:
       content:
-        application/json:
+        application/json; charset=utf-8:
           schema:
           schema:
             $ref: '#/components/schemas/ApiResponse'
             $ref: '#/components/schemas/ApiResponse'
     NotImplemented:
     NotImplemented:
       description: Not Implemented
       description: Not Implemented
       content:
       content:
-        application/json:
+        application/json; charset=utf-8:
           schema:
           schema:
             $ref: '#/components/schemas/ApiResponse'
             $ref: '#/components/schemas/ApiResponse'
     Conflict:
     Conflict:
       description: Conflict
       description: Conflict
       content:
       content:
-        application/json:
+        application/json; charset=utf-8:
           schema:
           schema:
             $ref: '#/components/schemas/ApiResponse'
             $ref: '#/components/schemas/ApiResponse'
     RequestEntityTooLarge:
     RequestEntityTooLarge:
       description: Request Entity Too Large, max allowed size exceeded
       description: Request Entity Too Large, max allowed size exceeded
       content:
       content:
-        application/json:
+        application/json; charset=utf-8:
           schema:
           schema:
             $ref: '#/components/schemas/ApiResponse'
             $ref: '#/components/schemas/ApiResponse'
     InternalServerError:
     InternalServerError:
       description: Internal Server Error
       description: Internal Server Error
       content:
       content:
-        application/json:
+        application/json; charset=utf-8:
           schema:
           schema:
             $ref: '#/components/schemas/ApiResponse'
             $ref: '#/components/schemas/ApiResponse'
     DefaultResponse:
     DefaultResponse:
       description: Unexpected Error
       description: Unexpected Error
       content:
       content:
-        application/json:
+        application/json; charset=utf-8:
           schema:
           schema:
             $ref: '#/components/schemas/ApiResponse'
             $ref: '#/components/schemas/ApiResponse'
   schemas:
   schemas:

+ 0 - 1
openapi/openapi.yaml

@@ -6728,4 +6728,3 @@ components:
       in: header
       in: header
       name: X-SFTPGO-API-KEY
       name: X-SFTPGO-API-KEY
       description: 'API key to use for authentication. API key authentication is intrinsically less secure than using a short lived JWT token. You should prefer API key authentication only for machine-to-machine communications in trusted environments. If no admin/user is associated to the provided key you need to add ".username" at the end of the key. For example if your API key is "6ajKLwswLccVBGpZGv596G.ySAXc8vtp9hMiwAuaLtzof" and you want to impersonate the admin with username "myadmin" you have to use "6ajKLwswLccVBGpZGv596G.ySAXc8vtp9hMiwAuaLtzof.myadmin" as API key. When using API key authentication you cannot manage API keys, update the impersonated admin, change password or public keys for the impersonated user.'
       description: 'API key to use for authentication. API key authentication is intrinsically less secure than using a short lived JWT token. You should prefer API key authentication only for machine-to-machine communications in trusted environments. If no admin/user is associated to the provided key you need to add ".username" at the end of the key. For example if your API key is "6ajKLwswLccVBGpZGv596G.ySAXc8vtp9hMiwAuaLtzof" and you want to impersonate the admin with username "myadmin" you have to use "6ajKLwswLccVBGpZGv596G.ySAXc8vtp9hMiwAuaLtzof.myadmin" as API key. When using API key authentication you cannot manage API keys, update the impersonated admin, change password or public keys for the impersonated user.'
-