浏览代码

Merge pull request #6408 from mailcow/fix/6373

[Swagger] Fix type property for /api/v1/add/bcc endpoint
FreddleSpl0it 5 月之前
父节点
当前提交
b550c6f88e
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      data/web/api/openapi.yaml

+ 2 - 1
data/web/api/openapi.yaml

@@ -346,7 +346,8 @@ paths:
                   description: the domain which emails should be forwarded
                   description: the domain which emails should be forwarded
                   type: string
                   type: string
                 type:
                 type:
-                  description: the type of bcc map can be `sender` or `recipient`
+                  description: the type of bcc map can be `sender` or `rcpt`
+                  enum: [sender, rcpt]
                   type: string
                   type: string
               type: object
               type: object
       summary: Create BCC Map
       summary: Create BCC Map