Skip to content

Commit 068ba3b

Browse files
authored
docs: the configuration type of the WASM plugin can be an object. (#12251)
1 parent 485f04d commit 068ba3b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/en/latest/wasm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Attributes below can be configured in the plugin:
102102

103103
| Name | Type | Requirement | Default | Valid | Description |
104104
| --------------------------------------| ------------| -------------- | -------- | --------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
105-
| conf | string | required | | != "" | the plugin ctx configuration which can be fetched via Proxy Wasm SDK |
105+
| conf | string or object | required | | != "" and != {} | the plugin ctx configuration which can be fetched via Proxy Wasm SDK |
106106

107107
Here is the mapping between Proxy Wasm callbacks and APISIX's phases:
108108

docs/zh/latest/wasm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ curl -i http://127.0.0.1:9180/apisix/admin/routes/1 -H "X-API-KEY: $admin_key" -
6363

6464
|名称 | 类型 | 要求 | 默认 | 有效 | 描述|
6565
|---|---|---|---|---|---|
66-
|conf|字符串 | 必填 | 无 | 不得为空 |插件 ctx 配置,可以通过 Proxy Wasm SDK 获取|
66+
|conf|字符串或结构体 | 必填 | 无 | 不得为空 |插件 ctx 配置,可以通过 Proxy Wasm SDK 获取|
6767

6868
这里是 Proxy Wasm 回调与 APISIX 阶段的映射:
6969

0 commit comments

Comments
 (0)