mirror of
https://github.com/langgenius/dify.git
synced 2026-02-22 19:15:47 +08:00
chore: validate param type of application/json when call a webhook (#25074)
This commit is contained in:
@ -35,7 +35,17 @@ class WebhookBodyParameter(BaseModel):
|
||||
"""Body parameter with type information."""
|
||||
|
||||
name: str
|
||||
type: Literal["string", "number", "boolean", "object", "array", "file"] = "string"
|
||||
type: Literal[
|
||||
"string",
|
||||
"number",
|
||||
"boolean",
|
||||
"object",
|
||||
"array[string]",
|
||||
"array[number]",
|
||||
"array[boolean]",
|
||||
"array[object]",
|
||||
"file",
|
||||
] = "string"
|
||||
required: bool = False
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user